forked from encode/uvicorn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
41 lines (36 loc) · 1.33 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
cache: pip
language: python
matrix:
include:
# The Windows job is important (obviously) to test on a non-Unix platform.
# It also runs the test with a quite minimal setup (no uvloop or httptools),
# but it does have websockets (needed to run the websockets tests).
- os: windows
language: bash
# The pypy3 job runs a fully pure Python setup, which triggers a part of the
# auto-detect tests that the other tests don't. We cannot test websockets though.
- os: linux
python: "pypy3.5"
# The main tests run on Linux for a all relevant Python versions.
- os: linux
python: "3.5"
- os: linux
python: "3.6"
- os: linux
python: "3.7-dev"
install:
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then
choco install python3;
export PATH=/c/Python37:/c/Python37/Scripts:/c/Python38:/c/Python38/Scripts:$PATH;
python -m pip install -U click h11 wsproto==0.13.* websockets;
python -m pip install -U autoflake black codecov isort pytest pytest-cov requests;
elif [ "$TRAVIS_PYTHON_VERSION" = "pypy3.5" ]; then
pip install -U click h11 wsproto==0.13.*;
pip install -U autoflake codecov isort pytest pytest-cov requests;
else
pip install -U -r requirements.txt;
fi;
script:
- scripts/test
after_script:
- codecov