-
Notifications
You must be signed in to change notification settings - Fork 76
/
.travis.yml
57 lines (48 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
46
47
48
49
50
51
52
53
54
55
56
57
sudo: false
language: python
python:
- "3.7"
- "3.8"
- "3.9"
- pypy3.7-7.3.2
cache:
directories:
- ~/.cache/pip
env:
matrix:
- OPTIONAL=true
- OPTIONAL=false
global:
- PIP_WHEEL_DIR=$HOME/.cache/pip/wheels
- PIP_FIND_LINKS=file://$HOME/.cache/pip/wheels
- PYTHONHASHSEED=94967295
matrix:
fast_finish: true
allow_failures:
- python: pypy3.7-7.3.2
exclude:
- python: pypy3.7-7.3.2
env: OPTIONAL=true
notifications:
email:
on_success: always
branches:
except:
- /^v[0-9]/
before_install:
- pip install -U pip
- pip install wheel
install:
- pip install -r dev-requirements.txt
- pip install -r requirements.txt
- |
if [[ "$OPTIONAL" == "true" ]]; then
pip wheel -r optional-requirements.txt
pip install -r optional-requirements.txt
fi
script:
- manage lint && manage test
after_success:
- if [[ "$TRAVIS_PULL_REQUEST" == "true" ]]; then exit 0; fi
- if [[ "$TRAVIS_BRANCH" != "master" ]]; then exit 0; fi
- if [[ "$TRAVIS_PYTHON_VERSION" != "3.9" ]]; then exit 0; fi