-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
40 lines (40 loc) · 1.8 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
language: python
python:
- 3.4
services: postgresql
env:
global:
- TRAVIS_CI='true'
- DJANGO_SETTINGS_MODULE="superlists.settings"
- PYTHONPATH="/home/travis/build/jiso/testing-goat/superlists"
- PIP_USE_MIRRORS=true
- DATABASE_URL='postgres://postgres:@localhost:5432/travisdb'
install:
- pip install -r requirements.txt
- pip install coveralls
before_script:
- psql -c "CREATE DATABASE travisdb;" -U postgres
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- sleep 3
script:
- cd superlists
- python manage.py migrate --noinput
- python manage.py collectstatic --noinput
- phantomjs static/tests/runner.js static/tests/test.html
- coverage run --source lists,superlists --branch --omit */migrations/*,*/tests/*,*/functional_tests/* manage.py test
# - coverage run --source lists,superlists --branch --omit */migrations/*,*/tests/*,*/functional_tests/* manage.py test
# - python superlists/manage.py test
# after_success:
# - coveralls
notifications:
email:
on_success: change
on_failure: change
deploy:
provider: heroku
api_key:
secure: 1b9ZPbIwAoVxGiU5uU0UP0c2iEqdqSeGYoCJ9sDpL9BF1u0Et6u1my42D5S7tD4oUzHVTKyDPNwZJ5mct2CH4/CHO1L0LeHuVNmCYPd/znIvNnMstthQXAbRDdistIDbKsqYUAUOAf7myxPzs9jFMwT2fiNrk729UVuCvZIJql8toOvem/JnFp0W7L79Qcy5IRc8a5NCDUlGD9h9xi4AZ2FWtfz+UcSt/I8R4OWfBhZSVJihFt4nbhZfzyINDIU1g558+IK9sbgBapzLJFHuiuQqGmf5Q1Y+jIM8z8U0hhrSkk2okVD+4B90I0QY73WSGRIf7JlJhpxisOQPYc29owX5FrL6Sc+v6krc5vD3rjI8pCXpqZhzwSdSFiqQrmBzJ9Fo6V2fTZzMheyimnEwLDZ9DUySya0/4BWhzbYzCk0lQr2ecur0Z/AXrxVGLwRq0YLsOPCOQn+Qzi1hROopj1b3d6TwYG9kgjk9ciD1hnMGJgKyv1FyZKncVfZr4Eouc6iwLQtqml1cmDIWnEbdvlBIG+if18gsY0z0C3tYXWWZSMyOEUy4j+aZU7DFJUXNi7McAWOv/jPBq6T/KLldVwsDgv00rgmJ+POkbIYBTSptpprQyJUwR8dNrMzBQrFJv2m4EYJ4EkMGb1McoZC6dp/FjPWOGsC9h6yFvuws/1I=
app: quiet-peak-3610
on:
repo: jiso/testing-goat