harvester-d4science/.travis.yml

42 lines
1.1 KiB
YAML
Raw Normal View History

language: python
python:
- "2.7"
env:
- CKANVERSION=master
- CKANVERSION=2.2
- CKANVERSION=2.3
- CKANVERSION=2.4
2016-01-14 12:43:37 +01:00
- CKANVERSION=2.5
- CKANVERSION=2.6
- CKANVERSION=2.7
2018-10-25 14:58:37 +02:00
- CKANVERSION=2.8
services:
- redis-server
- postgresql
install:
- bash bin/travis-build.bash
script: sh bin/travis-run.sh
2018-02-20 09:14:20 +01:00
# the new trusty images of Travis cause build errors with psycopg2, see https://github.com/travis-ci/travis-ci/issues/8897
dist: trusty
group: deprecated-2017Q4
2019-03-06 12:18:50 +01:00
2019-03-06 12:19:48 +01:00
stages:
2019-03-06 12:18:50 +01:00
- Flake8
- test
jobs:
include:
- stage: Flake8
env: FLAKE8=True
install:
- bash bin/travis-build.bash
- 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