-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
40 lines (35 loc) · 851 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
services:
- postgresql
- redis-server
python:
- "2.7"
before_script:
- export DATABASE_URL=postgres://postgres@localhost/rugbystat
- export DJANGO_SECRET=`openssl rand -base64 32`
- psql -c 'CREATE DATABASE "rugbystat";' -U postgres
install:
- "pip install -r requirements/test.txt"
script:
- ./rugbystat/manage.py test rugbystat
after_success:
- coveralls
deploy:
provider: heroku
app:
master: rugbystat-dev
qa: rugbystat-qa
prod: rugbystat-prod
on:
repo: krnr/rugbystat
run:
- "./rugbystat/manage.py migrate"
notifications:
email: false
# This reportedly works around an issue downloading packages from pypi on
# travis. Consider removing this after the underlying issue is fixed.
# https://github.com/travis-ci/travis-ci/issues/2389
sudo: false
matrix:
fast_finish: true
cache: pip