forked from utrade/uDisplay
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
40 lines (34 loc) · 869 Bytes
/
.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
language: python
sudo: false
python:
- '2.7'
addons:
postgresql: "9.4"
before_script:
- export DATABASE_URL=postgres://postgres@localhost/udisplay
- export DJANGO_SECRET=`openssl rand -base64 32`
- psql -c "CREATE DATABASE udisplay;" -U postgres
install:
- pip install ansible
- pip install -r requirements/development.txt
script:
- flake8
- py.test --cov -v --tb=native
- ansible-playbook -i provisioner/hosts provisioner/site.yml --syntax-check
notifications:
email:
on_success: change # [always|never|change]
on_failure: always # [always|never|change]
deploy:
provider: heroku
buildpack: python
strategy: api
api_key:
# travis encrypt $(heroku auth:token) --add deploy.api_key
secure: <add_heroku_auth_token_here>
app:
master: udisplay-dev
qa: udisplay-qa
prod: udisplay-prod
on:
repo: jainmickey/uDisplay