Try fix Travis testing on OS X

pull/696/head
Jeffrey Walton 2018-07-31 11:48:54 -04:00
parent 319698e43f
commit 7ff5f0dcf1
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
1 changed files with 9 additions and 0 deletions

View File

@ -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"