diff options
Diffstat (limited to 'third_party/python/coverage/.travis.yml')
-rw-r--r-- | third_party/python/coverage/.travis.yml | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/third_party/python/coverage/.travis.yml b/third_party/python/coverage/.travis.yml new file mode 100644 index 0000000000..f5e8fad19d --- /dev/null +++ b/third_party/python/coverage/.travis.yml @@ -0,0 +1,52 @@ +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt +# +# Tell Travis what to do +# https://travis-ci.com/nedbat/coveragepy + +dist: xenial +language: python + +cache: pip + +python: + - '2.7' + - '3.5' + - '3.6' + - '3.7' + - '3.8' + - 'pypy2.7-6.0' + - 'pypy3.5-6.0' + +# Only testing it for python3.8 on aarch64 platform, since it already has a lot +# of jobs to test and takes long time. +matrix: + include: + - python: 3.8 + arch: arm64 + env: + - COVERAGE_COVERAGE=no + - python: 3.8 + arch: arm64 + env: + - COVERAGE_COVERAGE=yes + +env: + matrix: + - COVERAGE_COVERAGE=no + - COVERAGE_COVERAGE=yes + +install: + - pip install -r requirements/ci.pip + - pip freeze + +script: + - tox + +after_script: + - | + if [[ $COVERAGE_COVERAGE == 'yes' ]]; then + python igor.py combine_html + pip install codecov + codecov -X gcov --file coverage.xml + fi |