forked from City-of-Helsinki/parkkihubi
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
39 lines (30 loc) · 797 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
38
39
# Postgis doesn't work on older 'precise' platform
# and the default depends on repo age (parkkihubi is too old)
sudo: false
dist: trusty
language: python
cache: pip
matrix:
include:
- python: "3.4"
- python: "3.5"
- python: "3.6"
- env: TOXENV=requirements
python: "3.4"
addons: null
before_script: null
- env: TOXENV=style
python: "3.4"
addons: null
before_script: null
# As of 2017-08 the new travis trusty images have broken postgis,
# so we have to specify the exact postgres version to install right addons
addons:
postgresql: 9.6
apt:
packages:
- postgresql-9.6-postgis-2.3
install: pip install tox-travis codecov
before_script: psql -U postgres -c "create extension postgis"
script: tox
after_success: codecov