-
Notifications
You must be signed in to change notification settings - Fork 15
/
.travis.yml
44 lines (40 loc) · 1014 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
40
41
42
43
44
language: python
sudo: required
# use an older trusty image, because the newer images cause build errors with
# psycopg2 that comes with CKAN<2.8:
# "Error: could not determine PostgreSQL version from '10.1'"
# see https://github.com/travis-ci/travis-ci/issues/8897
dist: trusty
group: deprecated-2017Q4
# matrix
python:
- 2.7
env:
# - CKANVERSION=master
- CKANVERSION=2.7
- CKANVERSION=2.8
# tests
script: sh bin/travis-run.sh
install:
- bash bin/travis-build.bash
- pip install coveralls
services:
- postgresql
- redis-server
after_success:
- coveralls
# additional jobs
matrix:
include:
- name: "Flake8 on Python 3.7"
dist: xenial # required for Python 3.7
cache: pip
install: pip install flake8
script:
- flake8 --version
- flake8 . --count --max-complexity=10 --max-line-length=127 --statistics --exclude ckan,ckanext-downloadall
python: 3.7
# overwrite matrix
env:
- FLAKE8=true
- CKANVERSION=master