-
Notifications
You must be signed in to change notification settings - Fork 15
/
.travis.yml
42 lines (42 loc) · 1.2 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
sudo: false
language: python
cache: pip
python:
- "2.7"
- "3.5"
addons:
postgresql: "9.6"
services:
- postgresql
branches:
only:
- master
- parkstay
- parkstay_rebase
env:
global:
- SECRET_KEY=SecretKeyForTravis
- DATABASE_URL="postgis://postgres@localhost:5432/travis_ci_test"
- FDW_MANAGER_DATABASE_URL="postgis://postgres@localhost:5432/travis_ci_test"
- PRODUCTION_EMAIL=False
- EMAIL_INSTANCE="TEST"
- NON_PROD_EMAIL="[email protected]"
- BPAY_ALLOWED=True
- SITE_URL=""
- SITE_PREFIX=""
- SITE_DOMAIN=""
sudo: true
install:
- sudo apt-get install postgresql-9.6-postgis-2.4 -y -q
- pip install pip --upgrade
- pip install -r requirements.txt
before_script:
- touch .env
- psql -c 'create database travis_ci_test;' -U postgres
- python manage_wc.py migrate --noinput
script:
- COVERAGE_FILE=.coverage_ledger coverage run --source="." manage_wc.py test --noinput ledger
- COVERAGE_FILE=.coverage_wc coverage run --source="." manage_wc.py test --noinput wildlifecompliance
- coverage combine .coverage_ledger .coverage_wc
after_success:
- coveralls