ci: test: Replace hard-coded commands with Makefile's targets

This commit is contained in:
James McCoy 2016-05-16 23:27:05 -04:00
parent 5bd65e31da
commit ab60a73b6a

View File

@ -49,11 +49,11 @@ asan_check() {
} }
run_unittests() { run_unittests() {
${MAKE_CMD} -C "${BUILD_DIR}" unittest ${MAKE_CMD} unittest
} }
run_functionaltests() { run_functionaltests() {
if ! ${MAKE_CMD} -C "${BUILD_DIR}" ${FUNCTIONALTEST}; then if ! ${MAKE_CMD} ${FUNCTIONALTEST}; then
asan_check "${LOG_DIR}" asan_check "${LOG_DIR}"
valgrind_check "${LOG_DIR}" valgrind_check "${LOG_DIR}"
exit 1 exit 1
@ -63,7 +63,7 @@ run_functionaltests() {
} }
run_oldtests() { run_oldtests() {
if ! make -C "${TRAVIS_BUILD_DIR}/src/nvim/testdir"; then if ! make oldtest; then
reset reset
asan_check "${LOG_DIR}" asan_check "${LOG_DIR}"
valgrind_check "${LOG_DIR}" valgrind_check "${LOG_DIR}"