Verify the build on Travis by executing the tests added by CMake.
- docker
env:
-- DOCKER_BUILD=FALSE
- BUILD_SYSTEM=autotools
+ global:
+ - CTEST_OUTPUT_ON_FAILURE=TRUE
-- DOCKER_BUILD=FALSE
- BUILD_SYSTEM=cmake
+ matrix:
+ - DOCKER_BUILD=FALSE
+ BUILD_SYSTEM=autotools
-- DOCKER_BUILD=TRUE
- BUILD_SYSTEM=autotools
+ - DOCKER_BUILD=FALSE
+ BUILD_SYSTEM=cmake
-- DOCKER_BUILD=TRUE
- BUILD_SYSTEM=cmake
+ - DOCKER_BUILD=TRUE
+ BUILD_SYSTEM=autotools
+
+ - DOCKER_BUILD=TRUE
+ BUILD_SYSTEM=cmake
install:
- sudo ldconfig
- cd ${TRAVIS_BUILD_DIR}
- if [ ${DOCKER_BUILD} == "TRUE" ] ; then docker build -t centos7-build-env ci/centos7/ ; fi
-
+
script:
- cd ${TRAVIS_BUILD_DIR}
- if [ ${DOCKER_BUILD} == "FALSE" ] ; then sudo ./ci/${BUILD_SYSTEM}-build_and_test.sh ; fi
#!/bin/sh
-# Run this script from the root source directory
+# Run this script from the root source directory
mkdir build || true
echo "Error: 'make install' failed." >&2
exit 1
fi
+
+if dot -c ; then
+ echo "'dot -c' succesfull."
+else
+ echo "Error: 'dot -c' failed." >&2
+ exit 1
+fi
+
+if ctest ; then
+ echo "'ctest' succesfull."
+else
+ echo "Error: 'ctest' failed." >&2
+ exit 1
+fi