-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
34 lines (26 loc) · 937 Bytes
/
.travis.yml
File metadata and controls
34 lines (26 loc) · 937 Bytes
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
# Let travis know the language it needs to run
language: python
# Mention the python version in which travis will run the app
python:
- "3.6.7"
# command to install dependencies in the requirements file
# You can also install the coverage here to avoid it being in the requirements file
# It is important to avoid things like coverage, pep8 that are not required to run the app
install:
- pip install -r requirements.txt
- pip install coverage
- pip install codecov
# A command/method to run tests
script:
- pytest
- pytest --cov-report term-missing --cov=./app
# This returns the coverage and let's coveralls know the coverage percent.
# Note that travis will build your system and get the coverage.
# It cannot display, therefore coveralls becomes important to get the coverage
# You can also use after_success
after_script:
- coveralls
# Using codecov to get coverage
after_success:
- codecov
- coveralls