Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
La Quadrature du Net
rpteam
Revue de Press
Commits
d45a01d7
Commit
d45a01d7
authored
May 18, 2017
by
okhin
Browse files
Merge branch 'ci-cd-branch' into rp2
parents
c90d4d2b
12265d3f
Changes
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
d45a01d7
...
...
@@ -3,7 +3,8 @@ variables:
cache
:
paths
:
-
"
$CI_PROJECT_DIR/pip-cache"
-
"
pip-cache"
-
"
env"
key
:
"
$CI_PROJECT_ID"
stages
:
...
...
@@ -23,4 +24,27 @@ unit tests:
-
echo "SECRET_KEY = '$(pwgen 20 1)'" >> ./project/settings/env.py
-
./manage.py migrate
-
pytest apps/ --cov=apps/
artifacts
:
paths
:
-
env/
expire_in
:
1 day
tags
:
[
preprod
]
static build
:
stage
:
build
script
:
-
virtualenv -p python3 env
-
source ./env/bin/activate
-
pip install -r requirements.txt
-
yarn install
-
webpack
-
echo "DEBUG = False" > ./project/settings/env.py
-
echo "SECRET_KEY = '$(pwgen 20 1)'" >> ./project/settings/env.py
-
./manage.py collectstatic
tags
:
[
preprod
]
dependencies
:
-
unit tests
artifacts
:
paths
:
-
static/
expire_in
:
1 day
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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