-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
57 lines (47 loc) · 2.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
dist: trusty
language: python
services:
- postgresql
python:
- '2.7'
addons:
postgresql: '9.4'
apt:
packages:
- postgresql-9.4-postgis-2.3
env:
- GEOKEY='>=1.6,<1.7' DJANGO='>=1.11,<1.12' DEPLOY=0
- GEOKEY='>=1.7,<1.8' DJANGO='>=1.11,<1.12' DEPLOY=1
virtualenv:
system_site_packages: true
install:
- sudo -E apt-get -yq update &>> ~/apt-get-update.log
- sudo apt-get install binutils libav-tools
- sudo apt-get -yq install libgdal-dev python-gdal
- gdal-config --version
- export C_INCLUDE_PATH=/usr/include/gdal
- export CPLUS_INCLUDE_PATH=/usr/include/gdal
before_script:
- psql template1 postgres -c 'create extension hstore;'
- psql -c 'create database geokey;' -U postgres
- psql -U postgres -d geokey -c 'create extension postgis;'
- pip install geokey$GEOKEY
- pip install django$DJANGO
- python -c "import django; print('DJANGO %s ' % django.get_version())"
- python -c "from geokey.version import get_version; print('GEOKEY %s' % get_version())"
- pip install -r travis_ci/requirements.txt
- pip install -e .
- python travis_ci/manage.py migrate
script:
- coverage run --source=geokey_airquality travis_ci/manage.py test geokey_airquality
after_success:
- coveralls
deploy:
provider: pypi
user: excites
password:
secure: DI1Z0IXJgFp8/KvlittkrPEtjbiayBZhkXD6QWgcknfecLSmwc2GG8xNfGVx3+ChLVJVUKcuiYtAZbdYn88RR9WwPeeIaDzx/MBDj/Rg9I+N6tPPV/jpJjBuCVDitWxD/ASxP9qF5ulpDzSJpu3ZMv4B8ix+CNGohEKfK6dBaGUk3acN5NeOAahh85LsOeXtdb1n7EEvCp2O6uqxxheNTtb39ONrWeKkhzQcY0dZH8uQ36rnpOwCWXTgYx+Z/IziLgAraHSwoWdu2vhNHVzIoGHv6ft/0V5652sI6VTR7Qb56v13rg2p/dg+kQpEVWIVhJqYuS3szOwbyCkcKPJPUSVgGbYv4tnta+HapylFXfbl+JUFzf5LuvDnnhgO0qhGVDovfmWPoONkuNrFSGVK3h1ri78lB/kYbK20XNT6/WfSLtqfitdCHQfIqSeS/T+XdUDt5fblVf2F1HD9UfGzJyB2r2pwVhNlC6eHdYRKq1+B8GR3RvSCsl9floP1exgDYz0EboZEhqGand+AiB48U9sYm04103YAzx7Biaii2asnkUbMyUJkCwuYRgVvkzrS/MMMq0gcklheErESVvHwAKAxlkw29HEvzsC/ad6pD3f1p+wKeFh6DEa7mbtkRfqcNYSuD2xLgjGTIXdUWfpNfTvpn5ImEko2odHuVWIVpWA=
on:
tags: true
branch: master
condition: $DEPLOY = 1