From 3cc4894fe04a6e776e1fdc60f5c01d2de733a26d Mon Sep 17 00:00:00 2001 From: Iustin Pop Date: Sat, 23 Nov 2019 00:00:48 +0100 Subject: [PATCH] Update Travis config to export coverage information Also enable newer Python (3.7, so not so new) under Linux. --- .travis.yml | 47 ++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 38 insertions(+), 9 deletions(-) diff --git a/.travis.yml b/.travis.yml index b051ea0..5184af8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,15 +8,44 @@ python: - "3.6" - "nightly" -# we don't need any python dependencies: -install: true +# enable OSX support, with only system Python, and newer Python on Linux: +matrix: + include: + - os: osx + # specify a reasonably newer xcode so that brew works + osx_image: xcode11 + language: generic + python: + include: + - python: "3.7" + dist: xenial + +# install coverage helper: +install: gem install coveralls-lcov # the test command: -script: python ./setup.py test +script: + - python ./setup.py test + - make clean + - CFLAGS="-coverage" python ./setup.py test + +# install lcov, platform-specific but clean: +addons: + apt: + packages: + - lcov + homebrew: + packages: + - lcov + +# coverage settings from here: +env: + - COVERALLS_PARALLEL=true + +after_success: + - lcov --capture --no-external --directory . --output-file coverage.info + - coveralls-lcov coverage.info + +notifications: + webhooks: https://coveralls.io/webhook -# enable OSX support, with only system python: -matrix: - include: - - os: osx - language: generic - python: -- 2.39.2