Travis: run "make check" only once with DO_COVERAGE=true (#940)
Fixes https://github.com/awesomeWM/awesome/issues/938.
This commit is contained in:
parent
7830cf076b
commit
547fec2824
10
.travis.yml
10
.travis.yml
|
@ -99,12 +99,16 @@ script:
|
||||||
cd "$BUILD_IN_DIR"
|
cd "$BUILD_IN_DIR"
|
||||||
cmake $CMAKE_ARGS "$SOURCE_DIRECTORY"
|
cmake $CMAKE_ARGS "$SOURCE_DIRECTORY"
|
||||||
fi
|
fi
|
||||||
- make && sudo env PATH=$PATH make install && awesome --version && make check
|
- make && sudo env PATH=$PATH make install && awesome --version
|
||||||
- |
|
- |
|
||||||
if [ "$DO_COVERAGE" = "true" ]; then
|
if [ "$TRAVIS_TEST_RESULT" = 0 ]; then
|
||||||
make check-coverage || exit 1;
|
if [ "$DO_COVERAGE" = "true" ]; then
|
||||||
|
make check-coverage || exit 1
|
||||||
sed -i "1 i\\require('luacov.runner')('"$PWD"/.luacov')" build/awesomerc.lua || exit 1
|
sed -i "1 i\\require('luacov.runner')('"$PWD"/.luacov')" build/awesomerc.lua || exit 1
|
||||||
BUILD_DIRECTORY="" tests/run.sh || exit 1
|
BUILD_DIRECTORY="" tests/run.sh || exit 1
|
||||||
|
else
|
||||||
|
make check
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
|
|
Loading…
Reference in New Issue