forked from gcovr/gcovr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
63 lines (57 loc) · 1.64 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
57
58
59
60
61
62
63
language: python
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.6
packages:
- gcc-5
- g++-5
env:
global:
- CXX=g++-5 CC=gcc-5 GCOV=gcov-5
- RUN_LINTER=1
matrix:
include:
- python: '2.6'
env: RUN_LINTER=
- python: '2.7'
env: COVERAGE_OPTS='--cov=gcovr --cov-branch'
- python: pypy
- python: '3.4'
- python: '3.5'
env: COVERAGE_OPTS='--cov=gcovr --cov-branch'
- python: pypy3.5-5.8.0
install:
- printenv
- $CXX --version
- pip install pytest --upgrade
- pip install ply ordereddict pyutilib
- test -z "$RUN_LINTER" || pip install flake8
- test -z "$COVERAGE_OPTS" || pip install pytest-cov coverage codecov
- python setup.py develop
script:
- test -z "$RUN_LINTER" || flake8 --ignore=E501
- python -m pytest -v $COVERAGE_OPTS gcovr doc/examples
- test -z "$COVERAGE_OPTS" || codecov -X gcov search
deploy:
- provider: pypi
server: https://test.pypi.org/legacy/
user: whart111
password:
secure: "TpOWxwD/izvCyz585nvwIq4plfbgi8BKqUW5Xm8uJRWEZ6g1/1K2Om7jxY2sP2XunzrlV85Nnl0juFKzVGfQEXo5yFGpUqx1r74cfFMd3mMATh5VndZuyrR8ZWB70mt/AGEFCPCFt82UqW2gbbZcO8T1i++5vl9hhTUlcaLo9vM="
distributions: sdist --format=gztar bdist_wheel
skip_existing: true
on:
tags: false
branch: master
python: '2.7'
- provider: pypi
user: whart111
password:
secure: "TpOWxwD/izvCyz585nvwIq4plfbgi8BKqUW5Xm8uJRWEZ6g1/1K2Om7jxY2sP2XunzrlV85Nnl0juFKzVGfQEXo5yFGpUqx1r74cfFMd3mMATh5VndZuyrR8ZWB70mt/AGEFCPCFt82UqW2gbbZcO8T1i++5vl9hhTUlcaLo9vM="
distributions: sdist --format=gztar bdist_wheel
on:
tags: true
branch: master
python: '2.7'