-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
48 lines (40 loc) · 967 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
41
42
43
44
45
46
47
48
language: python
sudo: false
python:
- '3.5.2'
addons:
postgresql: "9.4"
cache:
directories:
- $HOME/.cache/pip
- $HOME/.pip-accel
before_cache:
- rm -f $HOME/.cache/pip/log/debug.log
install:
- pip install pip-accel
- pip-accel install ansible
- pip-accel install -r requirements/development.txt
before_script:
- export DATABASE_URL=postgres://postgres@localhost/fyp
- psql -c "CREATE DATABASE fyp;" -U postgres
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: fyp-dev
qa: fyp-qa
prod: fyp-prod
on:
repo: glemmaPaul/face-your-peers