-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy path.travis.yml
44 lines (44 loc) · 1.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
language: python
cache: pip
matrix:
include:
- dist: trusty
python: '2.6'
- python: '2.7'
env: TEST_OLDEST_DEPS=true
- python: '2.7'
- dist: trusty
python: '3.2'
- dist: trusty
python: '3.3'
- python: '3.4'
- python: '3.5'
- python: '3.6'
- python: '3.7'
- python: '3.8'
env: TEST_OLDEST_DEPS=true
- python: '3.8'
env: LINT=true DOCS=true
- os: linux
dist: trusty
python: 'nightly'
- os: linux
dist: trusty
python: 'pypy'
- os: linux
dist: trusty
python: 'pypy3'
install:
- if [ "$LINT" == "true" ]; then pip install flake8 isort; fi
- pip install codecov
- pip install -r requirements.txt -r test-requirements.txt
- if [ "$TEST_OLDEST_DEPS" == "true" ]; then pip install -r oldest-requirements.txt; fi
- pip install -e .
script:
- if [ "$LINT" == "true" ]; then flake8 ./apacheconfig ./tests ./setup.py; fi
- if [ "$LINT" == "true" ]; then isort --check-only -rc apacheconfig tests setup.py; fi
- if [ "$DOCS" == "true" ]; then cd ./docs && make html && cd -; fi
- PYTHONPATH=.:$PYTHONPATH python tests/__main__.py
after_success:
- PYTHONPATH=.:$PYTHONPATH coverage run --omit=*test* tests/__main__.py
- codecov