forked from GFDRR/thinkhazard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
29 lines (29 loc) · 1.01 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
language: python
dist: trusty
cache:
directories:
- "$HOME/.cache/pip"
python:
- 2.7
addons:
postgresql: '9.3'
before_install:
- sudo apt-get install --no-install-recommends libgdal-dev postgresql-9.3-postgis-2.3
install:
- make install
- createuser www-data --no-superuser --no-createdb --no-createrole -U postgres
- createdb -O www-data thinkhazard_tests -U postgres
- psql -d thinkhazard_tests -c 'CREATE EXTENSION postgis;' -U postgres
- psql -d thinkhazard_tests -c 'CREATE EXTENSION unaccent;' -U postgres
script:
- make check
- echo [app:public] >> local.tests.ini
- echo sqlalchemy.url = postgresql://www-data:www-data@localhost/thinkhazard_tests
>> local.tests.ini
- echo [app:admin] >> local.tests.ini
- echo sqlalchemy.url = postgresql://www-data:www-data@localhost/thinkhazard_tests
>> local.tests.ini
- make test
env:
matrix:
secure: ksUzWo3He56TT497XjuCDnj2rIz1pIOYq5tugCwfAlWFVakbajWhcsvnlZ4n4PzgCV6JbseDDZbz4S4uQxujkumjAZ0DOsGeilOhqnyge7D5wFeKsRv2wJTBOLrCeE1GnBXnhZyjDyl69eNNxLzCuDCwrle5gTz/nddWx4waFBM=