Add travis build for lua functionaltest

This commit is contained in:
Thiago de Arruda 2016-03-07 02:18:44 -03:00
parent 646ab30858
commit 6674930d7c
3 changed files with 9 additions and 1 deletions

View File

@ -5,6 +5,9 @@ build_deps() {
if [[ "${BUILD_MINGW}" == ON ]]; then if [[ "${BUILD_MINGW}" == ON ]]; then
DEPS_CMAKE_FLAGS="${DEPS_CMAKE_FLAGS} ${CMAKE_FLAGS_MINGW}" DEPS_CMAKE_FLAGS="${DEPS_CMAKE_FLAGS} ${CMAKE_FLAGS_MINGW}"
fi fi
if [[ "${FUNCTIONALTEST}" == "functionaltest-lua" ]]; then
DEPS_CMAKE_FLAGS="${DEPS_CMAKE_FLAGS} -DUSE_BUNDLED_LUA=ON"
fi
rm -rf "${DEPS_BUILD_DIR}" rm -rf "${DEPS_BUILD_DIR}"

View File

@ -53,7 +53,7 @@ run_unittests() {
} }
run_functionaltests() { run_functionaltests() {
if ! ${MAKE_CMD} -C "${BUILD_DIR}" functionaltest; then if ! ${MAKE_CMD} -C "${BUILD_DIR}" ${FUNCTIONALTEST}; then
asan_check "${LOG_DIR}" asan_check "${LOG_DIR}"
valgrind_check "${LOG_DIR}" valgrind_check "${LOG_DIR}"
exit 1 exit 1

View File

@ -53,6 +53,8 @@ env:
# if the tests were successful, but don't have this information # if the tests were successful, but don't have this information
# available in before_cache (which is run before after_success). # available in before_cache (which is run before after_success).
- SUCCESS_MARKER="$BUILD_DIR/.tests_successful" - SUCCESS_MARKER="$BUILD_DIR/.tests_successful"
# default target name for functional tests
- FUNCTIONALTEST=functionaltest
matrix: matrix:
include: include:
@ -60,6 +62,9 @@ matrix:
env: CI_TARGET=lint env: CI_TARGET=lint
- os: linux - os: linux
compiler: gcc-5 compiler: gcc-5
- os: linux
compiler: gcc-5
env: FUNCTIONALTEST=functionaltest-lua
- os: linux - os: linux
# Travis creates a cache per compiler. # Travis creates a cache per compiler.
# Set a different value here to store 32-bit # Set a different value here to store 32-bit