Skip to content

Commit

Permalink
Updated travis
Browse files Browse the repository at this point in the history
  • Loading branch information
deven96 committed Oct 31, 2019
1 parent ebb2e2d commit 506c55b
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 37 deletions.
38 changes: 1 addition & 37 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
language: python
sudo: required

python:
- "3.6"
- "3.7"

services:
- postgresql


install:
- pip install -r requirements.txt

Expand All @@ -18,38 +17,3 @@ jobs:
before_script: psql -c 'create database travis_ci_test;' -U postgres
script: python manage.py test --settings pipeline.settings.travis

- stage: deploy
name: "Deploy to PyPi"
script: skip
deploy: &pypi
provider: pypi
user: "mensaah"
password: $PYPI_PASSWORD
on:
tags: true
skip_existing: true
server: https://test.pypi.org/legacy/

- stage: deploy
name: "Deploy to Heroku"
script: skip
deploy: &heroku
provider: heroku
on:
tags: true
install: skip
api_key: $HEROKU_PRODUCTION_API_KEY
app: $HEROKU_APP_NAME

- stage: deploy
name: "Deploy to GitHub Pages"
script: cd docs && make html
deploy: &pages
provider: pages
local_dir: docs/build/html
skip_cleanup: true
github_token: $GITHUB_TOKEN
keep_history: true
on:
branch: master
tags: true
55 changes: 55 additions & 0 deletions .travis.yml-complete
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
language: python
sudo: required

python:
- "3.6"

services:
- postgresql


install:
- pip install -r requirements.txt

jobs:
include:
- stage: test
name: "Tests"
before_script: psql -c 'create database travis_ci_test;' -U postgres
script: python manage.py test --settings pipeline.settings.travis

- stage: deploy
name: "Deploy to PyPi"
script: skip
deploy: &pypi
provider: pypi
user: "mensaah"
password: $PYPI_PASSWORD
on:
tags: true
skip_existing: true
server: https://test.pypi.org/legacy/

- stage: deploy
name: "Deploy to Heroku"
script: skip
deploy: &heroku
provider: heroku
on:
tags: true
install: skip
api_key: $HEROKU_PRODUCTION_API_KEY
app: $HEROKU_APP_NAME

- stage: deploy
name: "Deploy to GitHub Pages"
script: cd docs && make html
deploy: &pages
provider: pages
local_dir: docs/build/html
skip_cleanup: true
github_token: $GITHUB_TOKEN
keep_history: true
on:
branch: master
tags: true

0 comments on commit 506c55b

Please sign in to comment.