Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
oser-showcase-backend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hamza Touizrat
oser-showcase-backend
Commits
509b9546
Commit
509b9546
authored
7 years ago
by
florimondmanca
Browse files
Options
Downloads
Patches
Plain Diff
update .travis.yml
parent
f93be5bd
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.travis.yml
+5
-22
5 additions, 22 deletions
.travis.yml
with
5 additions
and
22 deletions
.travis.yml
+
5
−
22
View file @
509b9546
...
@@ -12,45 +12,28 @@ services:
...
@@ -12,45 +12,28 @@ services:
install
:
install
:
-
pip install -r requirements.txt
-
pip install -r requirements.txt
# Supervisor < 4 does not support python 3 but Supervisor 4 is not
# released to PyPI yet. => Install from Github
-
pip install git+https://github.com/Supervisor/supervisor.git
-
pip install git+https://github.com/Supervisor/supervisor.git
before_script
:
before_script
:
# Start Celery using the supervisor config
-
supervisord
-
supervisord
-
psql -c 'create database oser_showcase_backend_db;' -U postgres
# Create local PostgreSQL database
-
cd project
# NOTE: the database name (here 'oser_backend_db') must match the name
# in one of these DATABASE_URL setting:
# - the one set up in TravisCI environment variables
# - the one set up in settings/default.py
-
psql -c 'create database oser_backend_db;' -U postgres
# Go to the project root directory
-
cd oser_backend
# Apply database migrations
-
python manage.py migrate
-
python manage.py migrate
script
:
script
:
# Run tests
-
python manage.py test
-
python manage.py test
before_deploy
:
before_deploy
:
# Return the repository root
-
cd .. && ls
-
cd .. && ls
deploy
:
deploy
:
# Deploy to Heroku once the tests have passed
# See TravisCI docs: https://docs.travis-ci.com/user/deployment/heroku/
provider
:
heroku
provider
:
heroku
app
:
app
:
# direct each branch to the corresponding app
# direct each branch to the corresponding app
master
:
oser-backend
master
:
oser-
showcase-
backend
staging
:
oser-backend-staging
staging
:
oser-
showcase-
backend-staging
run
:
run
:
# automatically run new migrations
-
'
python
project/manage.py
migrate'
-
'
python
oser_backend/manage.py
migrate'
api_key
:
api_key
:
# Encrypted API key obtained from the following command
# Encrypted API key obtained from the following command
# (requires TravisCI and Heroku CLI installed)
# (requires TravisCI and Heroku CLI installed)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment