-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
60 lines (49 loc) · 1.14 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
# blocklist
branches:
except:
- migration-feature
- reproduction-feature
- automation-feature
- hotfix-1.0.1
- multitraits-feature
- policing-feature
- policing-demog
- boundaries-feature
- technology-feature
# safelist
branches:
only:
- master
- develop
## INSTALL ##
dist: xenial # required for Python >= 3.7
# Disable sudo to speed up the build
sudo: false
# Set the build language to python
language: python
# Set the python version(s)
python:
- "3.7"
# commands to install dependencies through pip
cache: pip
install:
# needs a file called requirements.txt in the repo with the name of the dependencies to install
- pip install --upgrade pytest
- pip install -r requirements.txt
- pip install codecov
## SCRIPT ##
# command to run tests
script:
- python -m pytest --cov --cov-report html
# codecov token. Apparently unnecessary with Travis-CI
#env:
# - CODECOV_TOKEN=c5829cea-c917-4312-8240-cc9b731863f0
## HEADOUT ##
after_success:
- codecov
notifications:
email:
recipients:
on_success: change # default: change
on_failure: change # default: always