From 473807f8fe723f2855ea5169539c46b57820a716 Mon Sep 17 00:00:00 2001 From: andy5995 Date: Tue, 11 Sep 2018 23:30:48 -0500 Subject: [PATCH] .travis.yml:add tests for 'make install' (#110 #147) --- .travis.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 4c74a5dfd..a38add73d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -57,7 +57,12 @@ before_install: script: # ALL THE BUILD COMMANDS HERE - - if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$(echo "$CC" | grep 'clang')" = "" ] && [ "$Tr_Compiler_Version" != "6" ]; then mk/linux/build-zg.sh; fi + - if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$(echo "$CC" | grep 'clang')" = "" ] && [ "$Tr_Compiler_Version" != "6" ]; then + mkdir build; + cd build; + cmake .. -DCMAKE_INSTALL_PREFIX=$PWD/local -DZETAGLEST_DATA_INSTALL_PATH=$PWD/local/data/zetaglest; + make && make install; + fi # use gcc 6 to test build using embedded libs, add -z option - if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$(echo "$CC" | grep 'clang')" = "" ] && [ "$Tr_Compiler_Version" = "6" ]; then mk/linux/build-zg.sh -e; fi - if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$(echo "$CC" | grep 'clang')" != "" ]; then mk/linux/build-zg.sh -w; fi