-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
executable file
·59 lines (50 loc) · 1.46 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
################
# See:
# https://docs.travis-ci.com/user/getting-started/
################
################
# Use container-based infrastructure on Travis:
sudo: false
################
################
# https://docs.travis-ci.com/user/multi-os/
os:
# - osx # needs more work, maybe download miniconda first
- linux
################
################
# Specify runtime and versions
# See: https://docs.travis-ci.com/user/customizing-the-build/#Specifying-Runtime-Versions
language: python
python:
- "3.5"
- "3.6"
# - "3.7"
################
################
# Install dependencies:
before_install:
# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew upgrade python; fi
install:
- pip install -r requirements.txt # --use-mirrors errors in Py3.5
- python setup.py install
- pip install flake8
# - pip install coverage # coveralls.io continuously monitors test case coverage
# - pip install coveralls
################
################
# 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
################