2015-10-24 21:13:21 +00:00
|
|
|
language: python
|
|
|
|
|
|
|
|
python:
|
2017-10-03 18:32:39 +00:00
|
|
|
- 3.5
|
|
|
|
- 3.6
|
2019-09-12 20:53:42 +00:00
|
|
|
- 3.7
|
|
|
|
- 3.8-dev
|
2015-10-24 21:13:21 +00:00
|
|
|
|
2017-10-03 18:32:39 +00:00
|
|
|
addons:
|
2019-01-04 15:31:03 +00:00
|
|
|
postgresql: "9.6"
|
2017-10-03 18:32:39 +00:00
|
|
|
apt:
|
|
|
|
packages:
|
2019-06-19 13:04:10 +00:00
|
|
|
- postgresql-9.6-postgis-2.4
|
2016-07-02 18:20:04 +00:00
|
|
|
|
2015-11-29 20:39:13 +00:00
|
|
|
before_script:
|
2017-10-03 18:32:39 +00:00
|
|
|
- flake8 tests ogn_test
|
2017-12-04 07:30:31 +00:00
|
|
|
- psql -U postgres -c 'CREATE DATABASE ogn_test;'
|
|
|
|
- psql -U postgres -c 'CREATE EXTENSION postgis;'
|
2015-11-29 20:39:13 +00:00
|
|
|
|
2015-10-24 21:13:21 +00:00
|
|
|
script:
|
2019-09-12 18:50:30 +00:00
|
|
|
- nosetests --with-coverage --cover-package=app
|
2016-01-06 00:30:01 +00:00
|
|
|
- pip install . --upgrade
|
2019-09-12 18:50:30 +00:00
|
|
|
- python -c 'import app'
|
2016-01-06 00:30:01 +00:00
|
|
|
|
2015-10-24 21:13:21 +00:00
|
|
|
after_success:
|
|
|
|
- coveralls
|