Run tests on gitlab-ci

parent 3de01729
Pipeline #1695 failed with stages
in 1 second
stages:
- test
- deploy
unit tests:
variables:
BASE_PATH: /srv/generateur-slogans
stage: test
tags: [preprod]
script:
- rsync -ruvC ./ $BASE_PATH
- cd $BASE_PATH
- rm -rf node_modules/
- sudo npm install -g nodeunit
- npm install
- cp config.json.default config.json
- npm test
deploy preprod:
variables:
BASE_PATH: /srv/generateur-slogans
stage: deploy
tags: [preprod]
script:
script:
- rsync -ruvC ./ $BASE_PATH
- cd $BASE_PATH
- rm -rf node_modules/
......@@ -22,7 +37,7 @@ deploy prod:
BASE_PATH: /srv/soutien/generateur-slogans
stage: deploy
tags: [prod]
script:
script:
- rsync -ruvC ./ $BASE_PATH
- cd $BASE_PATH
- rm -rf node_modules/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment