-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
69 lines (62 loc) · 2.64 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
58
59
60
61
62
63
64
65
66
67
68
69
################
# See:
# https://docs.travis-ci.com/user/getting-started/
################
################
# Use container-based infrastructure on Travis:
#sudo: false
################
################
# Copied from: https://docs.travis-ci.com/user/languages/python/
# Also see: https://docs.travis-ci.com/user/multi-os/
language: python # this works for Linux but is an error on macOS or Windows
matrix:
include:
- name: "Python 3.6 on Xenial Linux"
python: 3.5 # this works for Linux but is ignored on macOS or Windows
dist: xenial # required for Python >= 3.7
- name: "Python 3.6 on Xenial Linux"
python: 3.6 # this works for Linux but is ignored on macOS or Windows
dist: xenial # required for Python >= 3.7
- name: "Python 3.7.1 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.2 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.3 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
################
################
# Install dependencies:
install:
- pip3 install --upgrade pip || pip3 install --user pip # all three OSes agree about 'pip3'
# Windows complained denied permission
# use || so that the right executables get
# called depending on the OS
- pip3 install -r requirements.txt # --use-mirrors errors in Py3.5
- python setup.py install || python3 setup.py install
- pip3 install flake8
- pip3 install -U pytest
# - pip install coverage # coveralls.io continuously monitors test case coverage
################
################
# Indicate what to do before script, what script to execute and what to do after this:
# flake8 is wrapper for pep8, pyflakes and McCabe.
# pep8 checks the PEP 0008 style
# pyflakes looks for e.g. unused imports or variables
# McCabe warns about (unnecessary) complicated code
before_script:
- flake8 .
# command to run tests
script:
- pytest -rP -v --cache-clear
# - coverage run --source=project_quickstart setup.py test
#after_success:
# coveralls
################