forked from python-hyper/hyper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
40 lines (35 loc) · 878 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
language: python
python:
- "2.7"
- "3.4"
- "3.5"
- pypy
env:
- TEST_RELEASE=false HYPER_FAST_PARSE=false
- TEST_RELEASE=false HYPER_FAST_PARSE=true
- TEST_RELEASE=true HYPER_FAST_PARSE=false
- TEST_RELEASE=true HYPER_FAST_PARSE=true
- NGHTTP2=true
matrix:
allow_failures:
- env: TEST_RELEASE=true HYPER_FAST_PARSE=true
- env: TEST_RELEASE=true HYPER_FAST_PARSE=false
exclude:
- env: NGHTTP2=true
python: pypy
install:
- ".travis/install.sh"
before_script: "flake8 --max-complexity 15 --exclude 'hyper/packages/*' hyper test"
script:
- >
if [[ "$TEST_RELEASE" == true ]]; then
py.test test_release.py
else
if [[ $TRAVIS_PYTHON_VERSION == pypy ]]; then
py.test test/
else
coverage run -m py.test test/
coverage combine
coverage report
fi
fi