ci: codecov: use env vars instead of flags (#2648)
Using flags appears to trigger timeouts with codecov's backend. This uses env variables instead.
This commit is contained in:
parent
7cb9ec4798
commit
df9ed76418
|
@ -116,7 +116,9 @@ install:
|
||||||
if [ "$DO_COVERAGE" = "codecov" ]; then
|
if [ "$DO_COVERAGE" = "codecov" ]; then
|
||||||
test -f build/luacov.stats.out || { echo 'build/luacov.stats.out does not exist.'; return 1; }
|
test -f build/luacov.stats.out || { echo 'build/luacov.stats.out does not exist.'; return 1; }
|
||||||
luacov || return 1
|
luacov || return 1
|
||||||
travis_retry bash /tmp/codecov-bash -f build/luacov.report.out -X gcov -X coveragepy -F "$1,${LUANAME//./}" || return 1
|
# Set env variable for codecov.
|
||||||
|
TESTS="$1"
|
||||||
|
travis_retry bash /tmp/codecov-bash -f build/luacov.report.out -X gcov -X coveragepy -e LUANAME,TESTS || return 1
|
||||||
rm build/luacov.report.out build/luacov.stats.out
|
rm build/luacov.report.out build/luacov.stats.out
|
||||||
fi
|
fi
|
||||||
return 0
|
return 0
|
||||||
|
@ -145,7 +147,9 @@ install:
|
||||||
done
|
done
|
||||||
|
|
||||||
# Upload to Codecov.
|
# Upload to Codecov.
|
||||||
travis_retry bash /tmp/codecov-bash -X gcov -X coveragepy -F "$1,${LUANAME//./}"
|
# Set env variable for codecov.
|
||||||
|
TESTS="$1"
|
||||||
|
travis_retry bash /tmp/codecov-bash -X gcov -X coveragepy -e LUANAME,TESTS
|
||||||
)
|
)
|
||||||
fi
|
fi
|
||||||
return 0
|
return 0
|
||||||
|
|
Loading…
Reference in New Issue