Remove coverage because pip is broken in Travis.

pull/2301/head
Jussi Pakkanen 7 years ago
parent 6cf5cb5842
commit 21e2315afd
  1. 11
      .appveyor.yml
  2. 6
      .travis.yml

@ -88,22 +88,13 @@ install:
c:\projects\MSMpiSetup.exe -unattend -full
}
# Install additional packages needed for all builds.
- cmd: "%WRAPPER% %PYTHON% -m pip install codecov"
build_script:
- cmd: echo No build step.
- cmd: if %backend%==ninja ( %WRAPPER% ninja.exe --version ) else ( MSBuild /version & echo. )
test_script:
- cmd: echo Running tests for %arch% and %compiler% with the %backend% backend
- cmd: "%WRAPPER% %PYTHON% run_tests.py --cov --backend=%backend%"
after_test:
- cmd: "%WRAPPER% %PYTHON% -m coverage combine"
# Generate XML report manually because codecov module doesn't know how to run it properly.
- cmd: "%WRAPPER% %PYTHON% -m coverage xml"
- cmd: "%WRAPPER% %PYTHON% -m codecov -X search pycov -f coverage.xml -n windows-%arch%-%compiler%-%backend%"
- cmd: "%WRAPPER% %PYTHON% run_tests.py --backend=%backend%"
on_finish:
- set "PATH=%ORIG_PATH%"

@ -32,8 +32,6 @@ before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install ninja python3; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then docker pull jpakkane/mesonci:zesty; fi
- pip3 install codecov
- mkdir .coverage
# We need to copy the current checkout inside the Docker container,
# because it has the MR id to be tested checked out.
@ -50,7 +48,3 @@ script:
/bin/sh -c "cd /root && CC=$CC CXX=$CXX OBJC=$CC OBJCXX=$CXX ./run_tests.py --cov -- $MESON_ARGS && chmod -R a+rwX .coverage"
fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then SDKROOT=$(xcodebuild -version -sdk macosx Path) OBJC=$CC OBJCXX=$CXX ./run_tests.py --cov --backend=ninja -- $MESON_ARGS ; fi
after_success:
- coverage3 combine
- codecov -n "${TRAVIS_OS_NAME}-${CC}-{$(echo ${MESON_ARGS} | sed -e 's/^--//g' -e 's/ --/,/g')}"

Loading…
Cancel
Save