Skip to content

Commit 85f5c21

Browse files
committed
Only install pytest-asyncio in supported builds
1 parent 6021885 commit 85f5c21

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.travis.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,26 @@ language: python
22
matrix:
33
include:
44
- python: "2.7"
5-
env: ALLOW_DEPLOY=false
5+
env:
6+
- ALLOW_DEPLOY=false
7+
- AIO_AVAILABLE=false
68
- python: "3.4"
7-
env: ALLOW_DEPLOY=false
9+
env:
10+
- ALLOW_DEPLOY=false
11+
- AIO_AVAILABLE=false
812
- python: "3.5"
9-
env: ALLOW_DEPLOY=true
13+
env:
14+
- ALLOW_DEPLOY=true
15+
- AIO_AVAILABLE=true
1016
addons:
1117
apt:
1218
packages:
1319
- pandoc
1420
install:
1521
- pip install -U pip setuptools wheel
1622
- sh -c "if [ '$ALLOW_DEPLOY' = 'true' ]; then pip install -r doc/requirements.txt & pip install travis-sphinx; fi"
17-
- pip install -U pytest pytest-asyncio pytest-cov coveralls pypandoc
23+
- pip install -U pytest pytest-cov coveralls pypandoc
24+
- sh -c "if [ '$AIO_AVAILABLE' = 'true' ]; then pip install -U pytest-asyncio; fi"
1825
- pip install -e .
1926
script:
2027
- sh -c "if [ '$ALLOW_DEPLOY' = 'true' ]; then travis-sphinx --source=doc/source --nowarn build; fi"

0 commit comments

Comments
 (0)