-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (39 loc) · 1.36 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
group: travis_latest
language: python
flake8-steps: &flake8-steps
env: FLAKE8=true
cache: pip
install: pip install flake8
before_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/include/rjsmin.py
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
- flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
script:
- true
matrix:
include:
- python: "2.7"
services:
- docker
cache:
directories:
- ~/docker
before_install:
- docker build --rm=false -f contrib/docker/postgresql/Dockerfile -t postgresql .
- docker build --rm=false -f contrib/docker/solr/Dockerfile -t solr .
- docker pull redis:latest
- docker build --rm=false -t ckan .
install:
- docker run -d --name db postgresql
- docker run -d --name solr solr
- docker run -d --name redis redis:latest
- docker run -d --name ckan -p 5000:5000 --link db:db --link redis:redis --link solr:solr ckan
script:
- docker ps -a
- python: "2.7"
<<: *flake8-steps
- python: "3.7"
dist: xenial # required for Python 3.7
<<: *flake8-steps