diff options
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/.travis.yml b/.travis.yml index 25da402..9fa9376 100644 --- a/.travis.yml +++ b/.travis.yml @@ -67,31 +67,7 @@ jobs: python: 3.7 name: coverage before_script: - - python -m pip install -U coverage codecov - - python -m site - # setup sitecustomize so we can make all subprocess start coverage - - export PYSITEDIR=$(python -c "import sys; print(sys.path[-1])") - - export COVERAGE_PROCESS_START="$PWD/.coveragerc" - - export COVERAGE_FILE="$PWD/.coverage" - - mkdir -p "$PYSITEDIR" - - echo "$PYSITEDIR" - - touch "${PYSITEDIR}/sitecustomize.py" - - echo "import os" | tee --append "${PYSITEDIR}/sitecustomize.py" - - echo "os.environ['COVERAGE_PROCESS_START'] = '$PWD/.coveragerc'" | tee --append "${PYSITEDIR}/sitecustomize.py" - - echo "os.environ['COVERAGE_FILE'] = '$PWD/.coverage'" | tee --append "${PYSITEDIR}/sitecustomize.py" - - echo "import coverage" | tee --append "${PYSITEDIR}/sitecustomize.py" - - echo "coverage.process_startup()" | tee --append "${PYSITEDIR}/sitecustomize.py" - - cat "${PYSITEDIR}/sitecustomize.py" - # write the coverage config file - - echo "[run]" >> "$PWD/.coveragerc" - - echo "source = $PWD" >> "$PWD/.coveragerc" - - echo "parallel = True" >> "$PWD/.coveragerc" - - printf "omit =\n\t*Tests.py\n\t*/src/*\n\t*/test/*\n\t*/testing/*\n\t*/template/*\n\t*/scripts/*\n\t*/scons-time.py\n\t*/bootstrap.py\n\t*/runtest.py\n\t*/setup.py\n\n" >> "$PWD/.coveragerc" - - echo "[path]" >> "$PWD/.coveragerc" - - echo "source = $PWD" >> "$PWD/.coveragerc" - - echo "[report]" >> "$PWD/.coveragerc" - - printf "omit =\n\t*Tests.py\n\t*/src/*\n\t*/test/*\n\t*/testing/*\n\t*/template/*\n\t*/scripts/*\n\t*/scons-time.py\n\t*/bootstrap.py\n\t*/runtest.py\n\t*/setup.py\n\n" >> "$PWD/.coveragerc" - - cat "$PWD/.coveragerc" + - ./.travis/coverage_setup.sh script: - coverage run -p --rcfile="$PWD/.coveragerc" runtest.py -a -j 2 || if [[ $? == 2 ]]; then true; else false; fi |