52 lines
1.2 KiB
YAML
52 lines
1.2 KiB
YAML
dist: trusty
|
|
|
|
os: linux
|
|
language: python
|
|
|
|
install:
|
|
- bash bin/travis-build.bash
|
|
services:
|
|
- redis
|
|
- postgresql
|
|
addons:
|
|
postgresql: 9.6
|
|
apt:
|
|
packages:
|
|
- postgresql-9.6-postgis-2.3
|
|
|
|
script: bash bin/travis-run.bash
|
|
before_install:
|
|
- pip install codecov
|
|
after_success:
|
|
- codecov
|
|
|
|
jobs:
|
|
include:
|
|
- stage: Flake8
|
|
python: 2.7
|
|
env: FLAKE8=True
|
|
install:
|
|
- pip install flake8==3.5.0
|
|
- pip install pycodestyle==2.3.0
|
|
script:
|
|
- flake8 --version
|
|
# stop the build if there are Python syntax errors or undefined names
|
|
- flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics --exclude ckan
|
|
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
|
|
# - flake8 . --count --max-line-length=127 --statistics --exclude ckan --exit-zero
|
|
- stage: Tests
|
|
python: "2.7"
|
|
env: CKANVERSION=master
|
|
- python: "3.6"
|
|
env: CKANVERSION=master
|
|
- python: "2.7"
|
|
env: CKANVERSION=2.8
|
|
- python: "2.7"
|
|
env: CKANVERSION=2.7
|
|
- python: "2.7"
|
|
env: CKANVERSION=2.6
|
|
|
|
cache:
|
|
directories:
|
|
- $HOME/.cache/pip
|