-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
40 lines (31 loc) · 1.04 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
sudo: false
python:
- "3.4"
# Match postgresql version to that in conf/pillar/project.sls
addons:
postgresql: "9.3"
cache:
directories:
- $HOME/.cache/pip
env:
- DJANGO_SETTINGS_MODULE="radiant.settings.dev"
install:
- pip install -U pip
- pip install -U -r requirements/dev.txt
before_script:
- createdb -E UTF-8 radiant -U postgres -O $USER
# 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 80
- flake8 .
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