forked from UWSEDS/codebase
-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy path.travis.yml
More file actions
35 lines (28 loc) · 735 Bytes
/
.travis.yml
File metadata and controls
35 lines (28 loc) · 735 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
35
# what language the build will be configured for
language: python
# specify what versions of python will be used
# note that all of the versions listed will be tried
python:
- 3.6
- 3.5
- 2.7
# what branches should be evaluated
branches:
only:
- master
# list of commands to run to setup the environment
install:
- pip install coverage
- pip install coveralls
- pip install flake8
- pip install -r requirements.txt
# a list of commands to run before the main script
before_script:
- "flake8 codebase"
# the actual commands to run
script:
- coverage run -m unittest discover
# generate a coverage report to send to back to user
after_success:
- coverage report
- coveralls