From 7ff5f0dcf16ee2b793879708805524a0acb105cc Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Tue, 31 Jul 2018 11:48:54 -0400 Subject: [PATCH] Try fix Travis testing on OS X --- .travis.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.travis.yml b/.travis.yml index aa7ba607..b88ea873 100644 --- a/.travis.yml +++ b/.travis.yml @@ -140,23 +140,32 @@ before_install: TestScripts/install-android.sh fi +# xattr is OS X only and is used to remove quarantine bits +# from executables. We don't know how to tell the YML script +# to run xattr on OS X only. Silently eat the failure on Linux. script: - | if [[ "$BUILD_MODE" == "ios" ]]; then cp ./TestScripts/setenv-ios.sh . cp ./TestScripts/cryptest-ios.sh . chmod +x *.sh + xattr -r -d com.apple.quarantine *.sh 2>/dev/null ./cryptest-ios.sh elif [[ "$BUILD_MODE" == "android" ]]; then cp ./TestScripts/setenv-android-gcc.sh . cp ./TestScripts/cryptest-android.sh . chmod +x *.sh + xattr -r -d com.apple.quarantine *.sh 2>/dev/null ./cryptest-android.sh elif [[ "$BUILD_MODE" == "autotools" ]]; then cp ./TestScripts/cryptest-autotools.sh . + chmod +x *.sh + xattr -r -d com.apple.quarantine *.sh 2>/dev/null ./cryptest-autotools.sh elif [[ "$BUILD_MODE" == "cmake" ]]; then cp ./TestScripts/cryptest-cmake.sh . + chmod +x *.sh + xattr -r -d com.apple.quarantine *.sh 2>/dev/null ./cryptest-cmake.sh elif [[ "$BUILD_MODE" == "debug" ]]; then CXXFLAGS="-DDEBUG -g2 -O1" make -j "$BUILD_JOBS"