From 133b2411d40d2c3fd894635d712e78e6e1bcb97e Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sun, 21 Jan 2018 11:02:42 -0500 Subject: [PATCH] Disable Travis OS X and iOS testing (GH #570) Travis is having infrastructure problems since it migrated in November 2017. Our OS X and iOS tests hang for days. When the current job hangs, new jobs that enter the queue later hang too because the original job is still waiting. The subsequent hangs effect Android and Linux, too. Our Travis scripts test Android, Linux, OS X and iOS. A hang effects everything. We are going to disable Travis OS X and iOS tests until things improve. --- .travis.yml | 44 ++++++++++++++----------------------- TestScripts/cryptest-ios.sh | 7 +++++- 2 files changed, 22 insertions(+), 29 deletions(-) diff --git a/.travis.yml b/.travis.yml index 27c9121d..6b0f7563 100644 --- a/.travis.yml +++ b/.travis.yml @@ -51,15 +51,9 @@ matrix: - os: osx compiler: clang env: BUILD_MODE="ubsan" - # No iOS builds on Linux - - os: linux - env: BUILD_MODE="ios-arm" - - os: linux - env: BUILD_MODE="ios-arm64" - - os: linux - env: BUILD_MODE="ios-watch" - - os: linux - env: BUILD_MODE="ios-tv" + # Travis infrastructure problems, Issue 570 + # Re-enable when OS X and iOS improves + - os: osx include: - os: linux @@ -94,11 +88,18 @@ matrix: env: - BUILD_MODE=android - PLATFORM=x86_64 - - allow_failures: - os: osx - env: BUILD_MODE="ios-watch" - + env: + - BUILD_MODE=ios + - PLATFORM=iPhoneOS + - os: osx + env: + - BUILD_MODE=ios + - PLATFORM=WatchOS + - os: osx + env: + - BUILD_MODE=ios + - PLATFORM=AppleTVOS before_install: - | @@ -108,22 +109,9 @@ before_install: script: - | - if [[ "$BUILD_MODE" == "ios-arm" ]]; then + if [[ "$BUILD_MODE" == "ios" ]]; then cp ./TestScripts/setenv-ios.sh . - . ./setenv-ios.sh arm - make -f GNUmakefile-cross -j "$BUILD_JOBS" - elif [[ "$BUILD_MODE" == "ios-arm64" ]]; then - cp ./TestScripts/setenv-ios.sh . - . ./setenv-ios.sh arm64 -j "$BUILD_JOBS" - make -f GNUmakefile-cross - elif [[ "$BUILD_MODE" == "ios-watch" ]]; then - cp ./TestScripts/setenv-ios.sh . - . ./setenv-ios.sh watch - make -f GNUmakefile-cross -j "$BUILD_JOBS" - elif [[ "$BUILD_MODE" == "ios-tv" ]]; then - cp ./TestScripts/setenv-ios.sh . - . ./setenv-ios.sh tv - make -f GNUmakefile-cross -j "$BUILD_JOBS" + TestScripts/cryptest-ios.sh elif [[ "$BUILD_MODE" == "android" ]]; then cp ./TestScripts/setenv-android.sh . TestScripts/cryptest-android.sh diff --git a/TestScripts/cryptest-ios.sh b/TestScripts/cryptest-ios.sh index bd0fd2e2..8fdf4725 100755 --- a/TestScripts/cryptest-ios.sh +++ b/TestScripts/cryptest-ios.sh @@ -10,7 +10,12 @@ # See http://www.cryptopp.com/wiki/iOS_(Command_Line) for more details # ==================================================================== -PLATFORMS=(iPhoneOS iPhoneSimulator WatchOS WatchSimulator AppleTVOS AppleTVSimulator) +if [ -z "${PLATFORM-}" ]; then + PLATFORMS=(iPhoneOS iPhoneSimulator WatchOS WatchSimulator AppleTVOS AppleTVSimulator) +else + PLATFORMS=(${PLATFORM}) +fi + for platform in ${PLATFORMS[@]} do make -f GNUmakefile-cross distclean > /dev/null 2>&1