From 7fdfa3204ed050c97e938f651b707a1e27d9b4ae Mon Sep 17 00:00:00 2001 From: Rich Megginson Date: Wed, 1 Apr 2020 15:24:09 -0600 Subject: [PATCH] update to latest template code These changes don't directly affect network, or don't actually change the behavior of existing code that network uses (coveralls), but are intended to sync with the latest template code. Adds `LSR_PUBLISH_COVERAGE=normal` to `.travis/config.sh` because network wants to publish coverage normally (as opposed to `strict` or not at all). --- .travis/config.sh | 7 +++ .travis/fix-coverage.sh | 13 ------ .travis/runcoveralls.sh | 95 +++++++++++++++++++++++++++++++++++++++++ tox.ini | 9 ++-- 4 files changed, 106 insertions(+), 18 deletions(-) delete mode 100755 .travis/fix-coverage.sh create mode 100755 .travis/runcoveralls.sh diff --git a/.travis/config.sh b/.travis/config.sh index 5619ab3..85040b2 100644 --- a/.travis/config.sh +++ b/.travis/config.sh @@ -12,6 +12,12 @@ # - LSR_ANSIBLES # - LSR_MSCENARIOS # +# * .travis/runcoveralls.sh: +# +# - LSR_PUBLISH_COVERAGE +# - LSR_TESTSDIR +# - function lsr_runcoveralls_hook +# # Environment variables that not start with LSR_* but have influence on CI # process: # @@ -35,3 +41,4 @@ # * .travis/runpytest.sh: # # - RUN_PYTEST_SETUP_MODULE_UTILS +LSR_PUBLISH_COVERAGE=normal diff --git a/.travis/fix-coverage.sh b/.travis/fix-coverage.sh deleted file mode 100755 index 9b15758..0000000 --- a/.travis/fix-coverage.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash -# SPDX-License-Identifier: MIT - -set -ex - -cat > .coveragerc < ${COVERAGERCFILE} <=1.8.4 - ansible -rpylint_extra_requirements.txt whitelist_externals = {[base]whitelist_externals} @@ -170,13 +169,13 @@ commands = yamllint . [testenv:coveralls] envdir = {toxworkdir}/env-{env:TRAVIS_PYTHON_VERSION:coveralls} passenv = TRAVIS TRAVIS_* -whitelist_externals = bash deps = coveralls changedir = {[base]changedir} +whitelist_externals = + {[base]whitelist_externals} commands = - bash -c 'cd ..; bash .travis/fix-coverage.sh; cd -' - coveralls + bash {toxinidir}/.travis/runcoveralls.sh {posargs} [molecule_common] deps =