-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
33 lines (31 loc) · 1.41 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
language: python # this works for Linux but is an error on macOS or Windows
matrix:
fast_finish: true
include:
- name: "Python 3.7 on Xenial Linux"
python: 3.7 # this works for Linux but is ignored on macOS or Windows
dist: xenial # required for Python >= 3.7
- name: "Python 3.7 on macOS"
os: osx
osx_image: xcode10.2 # Python 3.7.2 running on macOS 10.14.3
language: shell # 'language: python' is an error on Travis CI macOS
- name: "Python 3.7 on Windows"
os: windows # Windows 10.0.17134 N/A Build 17134
language: shell # 'language: python' is an error on Travis CI Windows
before_install:
- choco install python
env:
- PATH=/c/Python37:/c/Python37/Scripts:$PATH
allow_failures:
- os: windows # Windows 10.0.17134 N/A Build 17134
install:
- pip3 install --upgrade pip || pip3 install --upgrade --user pip # --user is required for Windows
- pip3 install -r requirements.txt || pip3 install -r --user requirements.txt
- pip3 install pytest pytest-cov codecov || pip3 install --user pytest pytest-cov codecov # install coverage monitor
# 'python' points to Python 2.7 on macOS but points to Python 3.7 on Linux and Windows
# 'python3' is a 'command not found' error on Windows but 'py' works on Windows only
script:
- pytest --cov=./
cache: pip
after_success:
- codecov