forked from gcovr/gcovr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
56 lines (49 loc) · 1.18 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
language: python
dist: xenial
addons:
apt:
sources:
- ubuntu-toolchain-r-test
# - llvm-toolchain-xenial-8
packages:
- gcc-5
- g++-5
env:
global:
- CXX=g++-5 CC=gcc-5 GCOV=gcov-5
- RUN_LINTER=1
- BUILD_DOCS=
matrix:
include:
- python: '3.5'
- python: '3.7'
env: COVERAGE_OPTS='--cov=gcovr --cov-branch' BUILD_DOCS=1
- python: pypy3.5
install:
- python3 --version
- $CXX --version
- pip install --upgrade pip pytest coverage codecov
- make setup-dev
script:
- test -z "$RUN_LINTER" || make lint
- test -z "$RUN_LINTER" || admin/release_checklist --no-verify-tags --no-verify-docs-next-version 4.2
- make test TEST_OPTS="$COVERAGE_OPTS --archive_differences"
- test -z "$COVERAGE_OPTS" || codecov -X gcov search
- test -z "$BUILD_DOCS" || make doc
deploy:
- provider: pypi
user: "__token__"
# password: PYPI_PASSWORD provided in Travis web UI
distributions: sdist --format=gztar bdist_wheel
on:
tags: true
repo: gcovr/gcovr
branch: master
python: '3.7'
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/cda77870362da0942755
on_success: change
on_failure: always
on_start: never