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
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
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
TAlone
memopol
Commits
d7ef6666
Unverified
Commit
d7ef6666
authored
Apr 25, 2017
by
Jamesie Pic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Deploy Django and docs in parallel
parent
2a2f8592
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
.gitlab-ci.yml
.gitlab-ci.yml
+14
-5
No files found.
.gitlab-ci.yml
View file @
d7ef6666
...
@@ -14,26 +14,36 @@ before_script:
...
@@ -14,26 +14,36 @@ before_script:
-
pip install --user tox
-
pip install --user tox
-
export PATH="$HOME/.local/bin:$PATH"
-
export PATH="$HOME/.local/bin:$PATH"
unit
:
unit
tests
:
stage
:
test
stage
:
test
script
:
tox -e py27
script
:
tox -e py27
tags
:
[
memopol
]
tags
:
[
memopol
]
qa
:
qa
checks
:
stage
:
test
stage
:
test
script
:
tox -e qa
script
:
tox -e qa
tags
:
[
memopol
]
tags
:
[
memopol
]
docs
:
docs
build
:
stage
:
test
stage
:
test
script
:
git diff --raw HEAD^1 | grep docs || tox -e docs
script
:
git diff --raw HEAD^1 | grep docs || tox -e docs
tags
:
[
memopol
]
tags
:
[
memopol
]
deploy
:
docs deploy
:
stage
:
deploy
script
:
script
:
-
source /srv/memopol/memopol_env/bin/activate
-
source /srv/memopol/memopol_env/bin/activate
-
cd /srv/memopol/memopol_env/src/memopol/docs
-
cd /srv/memopol/memopol_env/src/memopol/docs
-
make html
-
make html
tags
:
[
memopol
]
environment
:
production
only
:
-
master
django deploy
:
stage
:
deploy
script
:
-
source /srv/memopol/memopol_env/bin/activate
-
cd /srv/memopol/memopol_env/src/memopol
-
cd /srv/memopol/memopol_env/src/memopol
-
git fetch origin
-
git fetch origin
-
git reset --hard origin/master
-
git reset --hard origin/master
...
@@ -43,7 +53,6 @@ deploy:
...
@@ -43,7 +53,6 @@ deploy:
-
memopol migrate --noinput
-
memopol migrate --noinput
-
memopol collectstatic --noinput
-
memopol collectstatic --noinput
-
touch /srv/memopol/ready
-
touch /srv/memopol/ready
stage
:
deploy
tags
:
[
memopol
]
tags
:
[
memopol
]
environment
:
production
environment
:
production
only
:
only
:
...
...
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