-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
37 lines (28 loc) · 988 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
36
37
language: python
python:
- 3.6
services: postgresql
addons:
- postgresql: "9.6"
install:
- pip install -r requirements.txt
- pip install "git+https://github.com/MikaSoftware/django-trapdoor"
- pip install "git+https://github.com/MikaSoftware/py-mortgagekit"
- pip install "git+https://github.com/MikaSoftware/py-incomepropertyevaluatorkit"
- pip install coverage
- pip install coveralls
env:
- DJANGO=1.11.8
before_script:
- psql -c "CREATE USER django WITH PASSWORD '123password';" -U postgres
- psql -c "CREATE DATABASE incomepropertyevaluator_db;" -U postgres
- psql -c "GRANT ALL PRIVILEGES ON DATABASE incomepropertyevaluator_db to django;" -U postgres
- psql -c "ALTER USER django CREATEDB;" -U postgres
- psql -c "ALTER ROLE django SUPERUSER;" -U postgres
- python incomepropertyevaluator/manage.py migrate --noinput
branches:
only:
- master
script: coverage run --source=incomepropertyevaluator manage.py test
after_success:
coveralls