Travis: fix codecov (#1105)

tests/run.sh: no slash with --search lib

Fixes https://github.com/awesomeWM/awesome/issues/1049.
This commit is contained in:
Daniel Hahler 2016-09-20 19:53:10 +02:00 committed by GitHub
parent ffa7519730
commit b4d6bfa4db
2 changed files with 3 additions and 4 deletions

View File

@ -100,7 +100,7 @@ install:
do_codecov() { do_codecov() {
if [ "$DO_COVERAGE" = "codecov" ]; then if [ "$DO_COVERAGE" = "codecov" ]; then
(cd build && luacov) || return 1 (cd build && luacov) || return 1
travis_retry bash /tmp/codecov-bash -F "$1" || return 1 travis_retry bash /tmp/codecov-bash -X coveragepy -c -F "$1" || return 1
rm build/luacov.stats.out rm build/luacov.stats.out
fi fi
return 0 return 0

View File

@ -82,11 +82,10 @@ fi
cd $build_dir cd $build_dir
AWESOME_OPTIONS="$AWESOME_OPTIONS --search lib/" AWESOME_OPTIONS="$AWESOME_OPTIONS --search lib"
# Add test dir (for _runner.lua). # Add test dir (for _runner.lua).
AWESOME_OPTIONS="$AWESOME_OPTIONS --search $this_dir" AWESOME_OPTIONS="$AWESOME_OPTIONS --search $this_dir"
XDG_CONFIG_HOME="./" export XDG_CONFIG_HOME="./"
export XDG_CONFIG_HOME
cd - >/dev/null cd - >/dev/null