-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
53 lines (47 loc) · 1.14 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
41
42
43
44
45
46
47
48
49
50
51
52
53
language: python
#os:
# - linux
# - osx
services:
- postgresql
- redis-server
python:
- "2.7"
before_script:
- export DATABASE_URL=postgres://postgres@localhost/drfunapp
- export DJANGO_SECRET=`openssl rand -base64 32`
- psql -c 'CREATE DATABASE "drfunapp";' -U postgres
install:
- "pip install -r requirements/test.txt"
- "pip install coveralls"
script:
- ./drfunapp/manage.py test --attr='!skip,!skip_travis' drfunapp
after_success:
- coveralls
#deploy:
# provider: heroku
# app:
# master: drfunapp-dev
# qa: drfunapp-qa
# prod: drfunapp-prod
# on:
# repo: Justin-W/drfunland
# run:
# - "./drfunapp/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
# allow_failures:
# - os: osx
addons:
apt:
packages:
- graphviz
#before install:
# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install graphviz; fi