-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
54 lines (46 loc) · 1.1 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
language: python
python:
- "3.6"
- "3.7"
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
- 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