-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path.travis.yml
51 lines (42 loc) · 1.61 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
language: python
sudo: false
python:
- "3.5"
# Match postgresql version to that in conf/pillar/project.sls
addons:
postgresql: "9.6"
apt:
packages:
- postgresql-9.6-postgis-2.3
cache:
directories:
- $HOME/.cache/pip
- $HOME/.npm
- $HOME/.nvm
- $HOME/.cache/node_modules
- $HOME/.cache/venvs
env:
- DJANGO_SETTINGS_MODULE="eatsmart.settings.dev"
install:
- pip install -U pip
- pip install -U -r requirements/dev.txt
before_script:
- createdb -E UTF-8 eatsmart -U postgres -O $USER
# Uncomment for Requires.IO pushes of develop and master merges (not pull-request builds)
# Requires the $REQUIRES_IO_TOKEN environment variable defined at Travis CI for this project
# See developer documentation section on depdency tracking for more information.
# - if [ "$TRAVIS_PULL_REQUEST" == "false" ] ; then requires.io update-branch -t $REQUIRES_IO_TOKEN -r rescueid -n $(echo $TRAVIS_BRANCH | sed "s|/|__|g") . ; fi
# Uncomment for PostGIS support
# - psql service_info -c "CREATE EXTENSION postgis;" -U postgres
script:
- python manage.py makemigrations --dry-run | grep 'No changes detected' || (echo 'There are changes which require migrations.' && exit 1)
- coverage run manage.py test
- coverage report -m --fail-under 20
- make docs
notifications:
hipchat:
rooms:
secure: 'FIXME: replace with "travis encrypt <api_token@room_id> --add notifications.hipchat.rooms"'
template:
- '%{repository}#%{build_number} (%{branch} - %{commit} : %{author}): %{message} (<a href="%{build_url}">Details</a>/<a href="%{compare_url}">Change view</a>)'
format: html