-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
70 lines (61 loc) · 2.18 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
os: linux
dist: focal
language: python
services:
- docker
- redis
install: bash bin/travis-build.bash
script: bash bin/travis-run.bash
stages:
- Flake8
- Tests
jobs:
include:
- stage: Flake8
python: 3.6
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=2.9
services:
- postgresql
- redis
- docker
- python: "3.6"
env: CKANVERSION=2.9
services:
- postgresql
- redis
- docker
- python: "2.7"
env: CKANVERSION=2.8
addons:
postgresql: '11'
apt:
sources:
- sourceline: 'deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main'
packages:
- postgresql-11
cache:
directories:
- $HOME/.cache/pip
notifications:
slack:
if: branch IN (master, development)
on_success: change
on_failure: always
on_pull_requests: false
rooms:
- secure: bqpXjyCJa7b5HXBfwQdDTz3+IozGJTLDP3FzmTDepxwC0n869Y0g7JgodUVcovvlzblBdeuH7vPAH4I3FJK/9ySj5tvFL5sW/waz8aGJ0EkCCiUsp3NceFkndGUZlmdV1I1x1ArZI0EkXdV9C3Br1OTEBK+99VP5J7nQs9fLaLQEvZUcJYILygWLcfSo1Ar3jqNFeYGVtcgq4pUkNC8PgT8KJG3fyZ+H2qnLn3GbRXN1rdfOITDjAJQDK7CdUaxFOV+HrFvapEdOJzoH3UaQjGCfL8Rl/Ic/W9FfH/jUN9kwHihGavuqOdxh/WaaYg/RC0KcgPhEYslGYVQxTp6QVp+8gZg/+bDfiFyz2clGxmR5QunNJkL7YF2ikqYhfqfmE7xbJ3QjT8mjDQzhwdk+0UNN2tWnY/WQjgBVteD/YG+kZge+IuM1YtkjlKdqP1/zUoara3T/47/H7QLnf73UXsUZvkELZfwOsZ3p+HelZnerA2n1vRKQ0ZAHTKF+5PDwL7Mr6qIKCjMlBgxRgeCKD5TcmywX2DIkvsv+X2pWAub7bBh8IVdGuhTLUsWNf1CLKzY41sNIJIIZCWnH0/7xM3wponi6Grx+TauOYdn8v0GClqY03GvLQcSgXMyCZF5J7ldZeg1OXcycrr1WqyqA+yc2YgLrgAUwAaNS29f3QX4=
email:
on_success: never
on_failure: never