-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (34 loc) · 872 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
language: python
services:
- postgresql
- redis-server
python:
- "2.7"
before_script:
- export DATABASE_URL=postgres://postgres@localhost/castjunction
- export DJANGO_SECRET=`openssl rand -base64 32`
- psql -c 'CREATE DATABASE "castjunction";' -U postgres
install:
- "pip install -r requirements/test.txt"
script:
- ./castjunction/manage.py test castjunction
after_success:
- coveralls
deploy:
provider: heroku
app:
master: castjunction-dev
qa: castjunction-qa
prod: castjunction-prod
on:
repo: morsefactory/ cast-core
run:
- "./castjunction/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