Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
419e7a10
Commit
419e7a10
authored
May 02, 2019
by
mouson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
upgrate example ymal file, change type to stage.
Update test-and-deploy-python-application-to-heroku.md
parent
743508bf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
doc/ci/examples/test-and-deploy-python-application-to-heroku.md
.../examples/test-and-deploy-python-application-to-heroku.md
+7
-2
No files found.
doc/ci/examples/test-and-deploy-python-application-to-heroku.md
View file @
419e7a10
...
...
@@ -9,7 +9,12 @@ You can checkout the [example source](https://gitlab.com/ayufan/python-getting-s
This is what the
`.gitlab-ci.yml`
file looks like for this project:
```
yaml
stages
:
-
test
-
deploy
test
:
stage
:
test
script
:
# this configures Django application to use attached postgres database that is run on `postgres` host
-
export DATABASE_URL=postgres://postgres:@postgres:5432/python-test-app
...
...
@@ -19,7 +24,7 @@ test:
-
python manage.py test
staging
:
typ
e
:
deploy
stag
e
:
deploy
script
:
-
apt-get update -qy
-
apt-get install -y ruby-dev
...
...
@@ -29,7 +34,7 @@ staging:
-
master
production
:
typ
e
:
deploy
stag
e
:
deploy
script
:
-
apt-get update -qy
-
apt-get install -y ruby-dev
...
...
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