forked from dbca-wa/oim-cms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
35 lines (35 loc) · 870 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
sudo: false
language: python
cache: pip
dist: trusty
python:
- 2.7
- 3.5
services:
- postgresql
addons:
postgresql: 9.5
apt:
packages:
- postgresql-9.5-postgis-2.3
branches:
only:
- master
env:
global:
- SECRET_KEY="SecretKeyForTravisCI"
- DATABASE_URL="postgis://postgres@localhost:5432/travis_ci_test"
- AZUREAD_AUTHORITY="https://login.microsoftonline.com/thisisnotarealazureaudauthorityurl"
install:
- pip install --upgrade pip
- pip install --upgrade setuptools
- pip install six
- pip install -r requirements.txt
before_script:
- psql -c 'create extension postgis' -U postgres
- psql -c 'create database travis_ci_test;' -U postgres
- python manage.py migrate --noinput
script:
- coverage run --source="." manage.py test
after_success:
- coveralls