-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
.travis.yml
31 lines (31 loc) · 1.1 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
language: python
python:
- "3.6"
- "3.7"
- "3.8"
dist: xenial
# command to install dependencies
cache:
- pip
install:
- "pip install --upgrade pip; pip install --upgrade setuptools; pip install -r test_requirements.txt; pip install -e git+https://github.com/django/django-contrib-comments.git#egg=django-contrib-comments; python setup.py install"
# command to run tests
env:
- TESTCASE=tests/tests_docs.py
- TESTCASE=tests/test_handler.py
- TESTCASE=tests/tests_middleware.py
- TESTCASE=tests/tests_placebo.py
- TESTCASE=tests/tests_async.py
- TESTCASE=tests/tests.py
before_script:
# stop the build if there are Python syntax errors or undefined names
- flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# 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:
- nosetests $TESTCASE --with-coverage --cover-package=zappa --with-timer
# - coverage combine --append
after_success:
coveralls
notifications:
slack: zappateam:TTJ0mfHunDK0IBweKkEXjGpR