Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LQDN Adminsys
generateur-slogans
Commits
311cd05c
Verified
Commit
311cd05c
authored
Nov 21, 2017
by
Thibaut Broggi
Browse files
Run tests on gitlab-ci
parent
3de01729
Pipeline
#1695
failed with stages
in 1 second
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
311cd05c
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/
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment