This repository has been archived by the owner on Jan 5, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
59 lines (49 loc) · 1.71 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
58
59
dist: trusty
language: python
services:
- postgresql
python:
- '2.7'
addons:
postgresql: '9.4'
apt:
packages:
- postgresql-9.4-postgis-2.3
env:
- DJANGO='>=1.8,<1.9'
- DJANGO='>=1.9,<1.10'
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 USER django WITH PASSWORD 'django123';" -U postgres
- psql -c "ALTER ROLE django WITH superuser;" -U postgres
- psql -c "CREATE DATABASE geokey OWNER django;" -U postgres
- psql -d geokey -c "CREATE EXTENSION postgis;" -U postgres
- cp -r local_settings.example local_settings
- pip install --upgrade pip
- pip install coveralls
- pip install -r requirements-dev.txt
- pip install -e .
- 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())"
- python manage.py migrate
script:
- coverage run --source=geokey.core,geokey.applications,geokey.extensions,geokey.users,geokey.superusertools,geokey.projects,geokey.categories,geokey.contributions,geokey.subsets manage.py test
after_success:
- coveralls
deploy:
provider: pypi
user: excites
password:
secure: EPsnf69HqWA8nT9ncgVuyhIJGZnR3Nrg8NUEzG4t1B1CTJfmwODC0Fb8Hybq25/0y6Fq3mBWE482xhscVHYvNh/7UnehU+y2riIj5iP+VYrfEuLzBN6ZkjYXOezafq6pzotwsj6JCDWKGmBE6Jy++FDsOFSzLK/R2p3HqnrnRpc=
on:
tags: true