-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
45 lines (45 loc) · 1.06 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
language: python
cache: pip
matrix:
include:
- python: '3.6'
- python: '3.7'
env: INTEGRATION=true
- python: '3.8'
env: LINT=true DOCS=true
- os: linux
dist: trusty
python: 'nightly'
- os: linux
dist: trusty
python: 'pypy3'
install:
- |
if [ "$LINT" == "true" ]
then
pip install flake8 flake8-bugbear flake8-colors flake8-docstrings \
flake8-import-order flake8-typing-imports pep8-naming
fi
- pip install -r requirements.txt -r test-requirements.txt
- pip install -e .
script:
- |
if [ "$LINT" == "true" ]
then
flake8 --config .flake8.ini --count --import-order-style pep8 \
--application-import-names softboxen ./softboxen ./tests ./setup.py
fi
- |
if [ "$DOCS" == "true" ]
then
cd ./docs && make html && cd -
fi
- PYTHONPATH=.:$PYTHONPATH python tests/__main__.py
- |
if [ "$INTEGRATION" == "true" ]
then
tests/integration/restapi.sh
fi
after_success:
- PYTHONPATH=.:$PYTHONPATH coverage run --omit=*test* tests/__main__.py
- codecov