forked from github/server
hard-coded search for valgrind
travis: use bionic, do not run valgrind
This commit is contained in:
parent
ff7cd7d20d
commit
69cf298b6a
|
@ -1,6 +1,6 @@
|
||||||
sudo: false
|
sudo: false
|
||||||
language: c
|
language: c
|
||||||
dist: focal
|
dist: bionic
|
||||||
compiler:
|
compiler:
|
||||||
- gcc
|
- gcc
|
||||||
- clang
|
- clang
|
||||||
|
@ -16,7 +16,6 @@ addons:
|
||||||
- libexpat1-dev
|
- libexpat1-dev
|
||||||
- libiniparser-dev
|
- libiniparser-dev
|
||||||
- libcjson-dev
|
- libcjson-dev
|
||||||
- valgrind
|
|
||||||
- cppcheck
|
- cppcheck
|
||||||
- shellcheck
|
- shellcheck
|
||||||
- luarocks
|
- luarocks
|
||||||
|
|
|
@ -8,12 +8,9 @@ export LUA_PATH="$ROOT/scripts/?.lua;$LUA_PATH"
|
||||||
UNIT_TESTS=$ROOT/$BUILD/eressea/test_eressea
|
UNIT_TESTS=$ROOT/$BUILD/eressea/test_eressea
|
||||||
RUN_TESTS=$ROOT/$BUILD/eressea/eressea
|
RUN_TESTS=$ROOT/$BUILD/eressea/eressea
|
||||||
if [ "$1" = "-V" ]; then
|
if [ "$1" = "-V" ]; then
|
||||||
VALGRIND=$(which valgrind)
|
|
||||||
if [ -n "$VALGRIND" ]; then
|
|
||||||
SUPP=$ROOT/share/ubuntu-12_04.supp
|
SUPP=$ROOT/share/ubuntu-12_04.supp
|
||||||
UNIT_TESTS="$VALGRIND --quiet --suppressions=$SUPP --error-exitcode=1 --leak-check=no $UNIT_TESTS"
|
UNIT_TESTS="valgrind --quiet --suppressions=$SUPP --error-exitcode=1 --leak-check=no $UNIT_TESTS"
|
||||||
RUN_TESTS="$VALGRIND --quiet --suppressions=$SUPP --error-exitcode=1 --leak-check=no $RUN_TESTS"
|
RUN_TESTS="valgrind --quiet --suppressions=$SUPP --error-exitcode=1 --leak-check=no $RUN_TESTS"
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -e $ROOT/$BUILD ]; then
|
if [ ! -e $ROOT/$BUILD ]; then
|
||||||
|
|
|
@ -43,6 +43,10 @@ luarocks install lunitx --local
|
||||||
eval $(luarocks path)
|
eval $(luarocks path)
|
||||||
export LUA_PATH="$ROOT/scripts/?.lua;$LUA_PATH"
|
export LUA_PATH="$ROOT/scripts/?.lua;$LUA_PATH"
|
||||||
echo $LUA_PATH
|
echo $LUA_PATH
|
||||||
s/runtests -V
|
if [ -e /usr/bin/valgrind ]; then
|
||||||
|
s/runtests -V
|
||||||
|
else
|
||||||
|
s/runtests
|
||||||
|
fi
|
||||||
integration_tests
|
integration_tests
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue