forked from hotosm/osm-tasking-manager2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
37 lines (29 loc) · 874 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:
- 2.7
cache:
directories:
- $HOME/.cache/pip
- $HOME/build/hotosm/osm-tasking-manager2/env
dist: trusty
addons:
postgresql: "9.3"
before_install:
- deactivate
- sudo apt-get install --no-install-recommends postgresql-9.3-postgis-2.3
install:
- virtualenv env
- env/bin/pip install --upgrade pip
- env/bin/pip install -r requirements.txt
- createuser www-data --no-superuser --no-createdb --no-createrole -U postgres
- createdb -O www-data osmtm_tests -U postgres
- psql -d osmtm_tests -c "CREATE EXTENSION postgis;" -U postgres
- env/bin/pip install flake8
script:
- echo [app:main] >> local.test.ini
- echo sqlalchemy.url = postgresql://www-data:www-data@localhost/osmtm_tests >> local.test.ini
- env/bin/nosetests
- env/bin/flake8 osmtm --exclude=osmtm/static
after_success:
- env/bin/pip install coveralls
- env/bin/coveralls