Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
memopol
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
32
Issues
32
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Political Memory
memopol
Commits
d19b6a35
Commit
d19b6a35
authored
Apr 25, 2017
by
Jamesie Pic
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'pipeline' into 'master'
Pipeline See merge request
!195
parents
df8a60ff
2a2f8592
Pipeline
#1008
passed with stages
in 9 minutes and 49 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
28 deletions
+47
-28
.gitlab-ci.yml
.gitlab-ci.yml
+47
-28
No files found.
.gitlab-ci.yml
View file @
d19b6a35
variables
:
variables
:
PIP_CACHE_DIR
:
"
$CI_PROJECT_DIR/pip-cache"
PIP_CACHE_DIR
:
"
$CI_PROJECT_DIR/pip-cache"
cache
:
cache
:
paths
:
paths
:
-
"
$CI_PROJECT_DIR/pip-cache"
-
"
$CI_PROJECT_DIR/pip-cache"
key
:
"
$CI_PROJECT_ID"
key
:
"
$CI_PROJECT_ID"
job test
:
script
:
stages
:
-
tox
-
test
stage
:
test
-
deploy
tags
:
[
memopol
]
job install
:
before_script
:
script
:
-
pip install --user tox
-
source /srv/memopol/memopol_env/bin/activate
-
export PATH="$HOME/.local/bin:$PATH"
-
cd /srv/memopol/memopol_env/src/memopol/docs
-
make html
unit
:
-
cd /srv/memopol/memopol_env/src/memopol
stage
:
test
-
git fetch origin
script
:
tox -e py27
-
git reset --hard origin/master
tags
:
[
memopol
]
-
find . -name '*.pyc' -delete
-
pip install -Ue .
qa
:
-
src/memopol/bin/install_client_deps.sh
stage
:
test
-
memopol migrate --noinput
script
:
tox -e qa
-
memopol collectstatic --noinput
tags
:
[
memopol
]
-
touch /srv/memopol/ready
stage
:
deploy
docs
:
tags
:
[
memopol
]
stage
:
test
environment
:
production
script
:
git diff --raw HEAD^1 | grep docs || tox -e docs
only
:
tags
:
[
memopol
]
-
master
deploy
:
script
:
-
source /srv/memopol/memopol_env/bin/activate
-
cd /srv/memopol/memopol_env/src/memopol/docs
-
make html
-
cd /srv/memopol/memopol_env/src/memopol
-
git fetch origin
-
git reset --hard origin/master
-
find . -name '*.pyc' -delete
-
pip install -Ue .
-
src/memopol/bin/install_client_deps.sh
-
memopol migrate --noinput
-
memopol collectstatic --noinput
-
touch /srv/memopol/ready
stage
:
deploy
tags
:
[
memopol
]
environment
:
production
only
:
-
master
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