Verified Commit 311cd05c authored by Thibaut Broggi's avatar Thibaut Broggi
Browse files

Run tests on gitlab-ci

parent 3de01729
Pipeline #1695 failed with stages
in 1 second
stages: stages:
- test
- deploy - 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: deploy preprod:
variables: variables:
BASE_PATH: /srv/generateur-slogans BASE_PATH: /srv/generateur-slogans
stage: deploy stage: deploy
tags: [preprod] tags: [preprod]
script: script:
- rsync -ruvC ./ $BASE_PATH - rsync -ruvC ./ $BASE_PATH
- cd $BASE_PATH - cd $BASE_PATH
- rm -rf node_modules/ - rm -rf node_modules/
...@@ -22,7 +37,7 @@ deploy prod: ...@@ -22,7 +37,7 @@ deploy prod:
BASE_PATH: /srv/soutien/generateur-slogans BASE_PATH: /srv/soutien/generateur-slogans
stage: deploy stage: deploy
tags: [prod] tags: [prod]
script: script:
- rsync -ruvC ./ $BASE_PATH - rsync -ruvC ./ $BASE_PATH
- cd $BASE_PATH - cd $BASE_PATH
- rm -rf node_modules/ - rm -rf node_modules/
......
Supports Markdown
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