-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
44 lines (44 loc) · 1.21 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
# Travis CI configuration file for coverlovin2
#
# docs https://docs.travis-ci.com/user/languages/python/ (https://archive.vn/w3tp5)
# schema https://raw.githubusercontent.com/travis-ci/travis-yml/ddfadc679cc80478b84f7b3cffde7cef991eace6/schema.json
---
language: python
os: linux
branches:
only:
- master
- travis
notifications:
email: true
git:
depth: 1
matrix:
include:
- name: "3.7 pytest"
python: 3.7
dist: xenial
- name: "3.8 pytest"
python: 3.8
- name: "3.9 pytest"
python: 3.9
install:
- pip install pipenv
- pipenv install --dev
before_script:
# the executable bit is not set on scripts under `tools/`, so force it
- chmod -vR +x,-w -- ./tools/
script:
# sanity check coverlovin2.py can start
- python ./coverlovin2/coverlovin2.py --version
- ./tools/yamllint.sh
- ./tools/pytest-run.sh
--cov=./coverlovin2/ --cov-config=./.coveragerc --cov-report=xml
--log-cli-level=DEBUG --verbosity=1
- ./tools/build-install-test.sh
after_success:
- coveralls
# upload coverage report to codecov.io
# requires setting secret environment variable COVERALLS_REPO_TOKEN within
# Travis -> Settings -> Environment Variables
- codecov --file coverage.xml