-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy path.travis.yml
More file actions
41 lines (36 loc) · 1.35 KB
/
.travis.yml
File metadata and controls
41 lines (36 loc) · 1.35 KB
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
language: python # this works for Linux but is an error on macOS or Windows
python:
#- "3.5"
- "3.6" # current default Python on Travis CI
# - "3.7"
#- "3.8"
#- "3.8-dev" # 3.8 development branch
#- "nightly" # nightly build
# jobs:
# include:
# - name: "Python 3.8.0 on Xenial Linux"
# python: 3.8 # this works for Linux but is ignored on macOS or Windows
# - name: "Python 3.7.4 on macOS"
# os: osx
# osx_image: xcode11.2 # Python 3.7.4 running on macOS 10.14.4
# language: shell # 'language: python' is an error on Travis CI macOS
# - name: "Python 3.8.0 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 --version 3.8.0
# - python -m pip install --upgrade pip
# env: PATH=/c/Python38:/c/Python38/Scripts:$PATH
before_install:
- pip3 install --upgrade pip # all three OSes agree about 'pip3'
- pip3 install -r requirements.txt
- pip3 install -U pytest
- pip3 install coverage
- pip3 install codecov pytest-cov
install:
- pip3 install .
script:
- coverage run -m pytest tests
after_success:
#- codecov --file coverage/lcov.info --disable search
- bash <(curl -s https://codecov.io/bash)