-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
53 lines (42 loc) · 1003 Bytes
/
.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
# blocklist
#branches:
# except:
# - migration-feature
# safelist
branches:
only:
- main
- develop
## INSTALL ##
dist: xenial # required for Python >= 3.7
# Disable sudo to speed up the build
# DEPRECATED
#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=31e10aac-ab45-40d4-bfd9-aea7a97c03a7
## HEADOUT ##
after_success:
- codecov
notifications:
email:
recipients:
on_success: change # default: change
on_failure: change # default: always