From 1fef4bbd622405e1ee9fbdc5aedb4788f843df96 Mon Sep 17 00:00:00 2001 From: gabime Date: Fri, 15 May 2015 22:08:34 +0300 Subject: [PATCH] added tests to travis --- .travis.yml | 4 +++- install_libcxx.sh => tests/install_libcxx.sh | 0 2 files changed, 3 insertions(+), 1 deletion(-) rename install_libcxx.sh => tests/install_libcxx.sh (100%) diff --git a/.travis.yml b/.travis.yml index 76822575..8cf9a9ae 100644 --- a/.travis.yml +++ b/.travis.yml @@ -107,7 +107,7 @@ before_install: - which $CXX - which $CC - which valgrind - - if [ -n "$CLANG_VERSION" ]; then sudo CXX=$CXX CC=$CC ./install_libcxx.sh; fi + - if [ -n "$CLANG_VERSION" ]; then sudo CXX=$CXX CC=$CC .tests/install_libcxx.sh; fi install: - cd $CHECKOUT_PATH @@ -131,10 +131,12 @@ install: - cd example - if [ "$BUILD_TYPE" == "Release" ]; then make rebuild CXXFLAGS="${CXX_FLAGS} ${CXX_LINKER_FLAGS}" VERBOSE=1; export BIN=example; fi - if [ "$BUILD_TYPE" == "Debug" ]; then make rebuild debug CXXFLAGS="${CXX_FLAGS} ${CXX_LINKER_FLAGS}" VERBOSE=1; export BIN=example-debug; fi + script: - ./"${BIN}" - valgrind --trace-children=yes --leak-check=full ./"${BIN}" + - cd tests; make rebuild; ./tests notifications: email: false diff --git a/install_libcxx.sh b/tests/install_libcxx.sh similarity index 100% rename from install_libcxx.sh rename to tests/install_libcxx.sh