diff options
author | Daniel Moody <dmoody256@gmail.com> | 2020-05-20 12:10:40 -0400 |
---|---|---|
committer | Daniel Moody <dmoody256@gmail.com> | 2020-05-20 12:10:40 -0400 |
commit | 1f122243645de24911a5b6196d1cf735e56c4452 (patch) | |
tree | 354e351fc54f505182b0e154988bf64a74611105 /.travis.yml | |
parent | aa5378e37ff2ab4e70be6d6b2af0cd79597da7dc (diff) | |
download | scons-git-1f122243645de24911a5b6196d1cf735e56c4452.tar.gz |
clean up CI files
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 25da4025c..9fa9376b8 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 |