-
Notifications
You must be signed in to change notification settings - Fork 31
/
.travis.yml
46 lines (38 loc) · 1023 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
45
46
language: python
cache: pip
python:
- '3.5'
- '3.6'
- '3.7'
env:
- XAPIAN='true'
- XAPIAN='false'
jobs:
exclude:
- python: '3.5'
env: XAPIAN='true'
- python: '3.6'
env: XAPIAN='true'
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
# needed to build Xapian
- uuid-dev
- gcc-4.8
- g++-4.8
install:
- pip install -r setup/requirements.txt
- pip install 'sphinx<2' flake8
- "if [[ $XAPIAN == 'true' ]]; then CXX=g++-4.8 ./setup/install-xapian.sh; fi"
- "if [[ $XAPIAN == 'true' ]]; then echo 'default_indexer: \'xapian\'' > local_settings.yml; fi"
after_script:
# E266 - `##` used in comments
# E501 - line length
# E402 - import order
# F401,F403,F405 - imports in `__init__.py` and subsequent use, star imports where imported names can not be detected
# ...and the default ignores
- flake8 . --ignore=E121,E123,E126,E226,E24,E266,E402,E501,E704,F401,F403,F405,W503,W504 --exclude=example.py
script:
- python main.py --test