Try fix Travis testing on OS X
parent
319698e43f
commit
7ff5f0dcf1
|
|
@ -140,23 +140,32 @@ before_install:
|
||||||
TestScripts/install-android.sh
|
TestScripts/install-android.sh
|
||||||
fi
|
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:
|
script:
|
||||||
- |
|
- |
|
||||||
if [[ "$BUILD_MODE" == "ios" ]]; then
|
if [[ "$BUILD_MODE" == "ios" ]]; then
|
||||||
cp ./TestScripts/setenv-ios.sh .
|
cp ./TestScripts/setenv-ios.sh .
|
||||||
cp ./TestScripts/cryptest-ios.sh .
|
cp ./TestScripts/cryptest-ios.sh .
|
||||||
chmod +x *.sh
|
chmod +x *.sh
|
||||||
|
xattr -r -d com.apple.quarantine *.sh 2>/dev/null
|
||||||
./cryptest-ios.sh
|
./cryptest-ios.sh
|
||||||
elif [[ "$BUILD_MODE" == "android" ]]; then
|
elif [[ "$BUILD_MODE" == "android" ]]; then
|
||||||
cp ./TestScripts/setenv-android-gcc.sh .
|
cp ./TestScripts/setenv-android-gcc.sh .
|
||||||
cp ./TestScripts/cryptest-android.sh .
|
cp ./TestScripts/cryptest-android.sh .
|
||||||
chmod +x *.sh
|
chmod +x *.sh
|
||||||
|
xattr -r -d com.apple.quarantine *.sh 2>/dev/null
|
||||||
./cryptest-android.sh
|
./cryptest-android.sh
|
||||||
elif [[ "$BUILD_MODE" == "autotools" ]]; then
|
elif [[ "$BUILD_MODE" == "autotools" ]]; then
|
||||||
cp ./TestScripts/cryptest-autotools.sh .
|
cp ./TestScripts/cryptest-autotools.sh .
|
||||||
|
chmod +x *.sh
|
||||||
|
xattr -r -d com.apple.quarantine *.sh 2>/dev/null
|
||||||
./cryptest-autotools.sh
|
./cryptest-autotools.sh
|
||||||
elif [[ "$BUILD_MODE" == "cmake" ]]; then
|
elif [[ "$BUILD_MODE" == "cmake" ]]; then
|
||||||
cp ./TestScripts/cryptest-cmake.sh .
|
cp ./TestScripts/cryptest-cmake.sh .
|
||||||
|
chmod +x *.sh
|
||||||
|
xattr -r -d com.apple.quarantine *.sh 2>/dev/null
|
||||||
./cryptest-cmake.sh
|
./cryptest-cmake.sh
|
||||||
elif [[ "$BUILD_MODE" == "debug" ]]; then
|
elif [[ "$BUILD_MODE" == "debug" ]]; then
|
||||||
CXXFLAGS="-DDEBUG -g2 -O1" make -j "$BUILD_JOBS"
|
CXXFLAGS="-DDEBUG -g2 -O1" make -j "$BUILD_JOBS"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue