From 5fc277d47dac8ae64af879b07297a61ec35518c7 Mon Sep 17 00:00:00 2001 From: Vitalii Koshura Date: Fri, 27 Mar 2020 12:13:23 +0100 Subject: [PATCH] [Codecov] Fix uploading CodeCov reports Signed-off-by: Vitalii Koshura --- .travis.yml | 1 - tests/executeUnitTests.sh | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 854d7809ea..1361d4a373 100644 --- a/.travis.yml +++ b/.travis.yml @@ -63,7 +63,6 @@ jobs: before_install: - if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then ( sudo apt-get -qq update ) fi - if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then ( sudo apt-get install -y freeglut3-dev libxmu-dev libxi-dev libfcgi-dev libxss-dev libnotify-dev libxcb-util0-dev libsqlite3-dev libgtk2.0-dev libwebkitgtk-dev mingw-w64 binutils-mingw-w64-i686 binutils-mingw-w64-x86-64 gcc-mingw-w64 gcc-mingw-w64-i686 gcc-mingw-w64-x86-64 g++-mingw-w64 g++-mingw-w64-i686 g++-mingw-w64-x86-64 realpath p7zip-full ) fi - - if [[ "${TRAVIS_OS_NAME}" == "linux" && "${BOINC_TYPE}" == "unit-test" ]]; then ( sudo pip install codecov ) fi - if [[ "${BOINC_TYPE}" == "integration-test" ]]; then ( sudo apt-get install ansible/trusty-backports; sudo service mysql stop; ) fi before_script: diff --git a/tests/executeUnitTests.sh b/tests/executeUnitTests.sh index 97f60f70e8..ee4df4d9db 100755 --- a/tests/executeUnitTests.sh +++ b/tests/executeUnitTests.sh @@ -56,7 +56,6 @@ command -v cmake >/dev/null 2>&1 || { echo >&2 "cmake is needed but not installe if [ "${report}" = "yes" ]; then command -v gcov >/dev/null 2>&1 || { echo >&2 "gcov (lcov) is needed but not installed. Aborting."; exit 1; } - command -v codecov >/dev/null 2>&1 || { echo >&2 "codecov (pip install codecov) is needed but not installed. Aborting."; exit 1; } fi cd tests || exit 1 @@ -81,5 +80,5 @@ if [ "${report}" = "yes" ]; then #for T in lib sched; do # [ -d "${T}" ] && gcov -lp *.o >/dev/null; #done - codecov + bash <(curl -s https://codecov.io/bash) fi