Re-enable OS X and iOS on Travis (GH #570, PR #627)

pull/628/head
Jeffrey Walton 2018-04-01 02:37:32 -04:00 committed by GitHub
parent 2e8ccc7777
commit d94ef9c70c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 36 additions and 30 deletions

View File

@ -47,9 +47,6 @@ matrix:
- os: osx - os: osx
compiler: clang compiler: clang
env: BUILD_MODE="ubsan" env: BUILD_MODE="ubsan"
# Travis infrastructure problems, Issue 570
# Re-enable when OS X and iOS improves
- os: osx
include: include:
- os: linux - os: linux
@ -84,21 +81,22 @@ matrix:
env: env:
- BUILD_MODE=android - BUILD_MODE=android
- PLATFORM=x86_64 - PLATFORM=x86_64
- os: osx
# Travis infrastructure problems, Issue 570 env:
# Re-enable when OS X and iOS improves - BUILD_MODE=ios
#- os: osx - PLATFORM=iPhoneOS
# env: - os: osx
# - BUILD_MODE=ios env:
# - PLATFORM=iPhoneOS - BUILD_MODE=ios
#- os: osx - PLATFORM=WatchOS
# env: - os: osx
# - BUILD_MODE=ios env:
# - PLATFORM=WatchOS - BUILD_MODE=ios
#- os: osx - PLATFORM=AppleTVOS
# env: - os: osx
# - BUILD_MODE=ios env:
# - PLATFORM=AppleTVOS - BUILD_MODE=ios
- PLATFORM=iPhoneSimulator
before_install: before_install:
- | - |
@ -130,7 +128,7 @@ branches:
- master - master
addons: addons:
sonarcloud: true sonarcloud: false
coverity_scan: coverity_scan:
project: project:

View File

@ -40,7 +40,7 @@ do
. ./setenv-android.sh "$platform" "$runtime" > /dev/null 2>&1 . ./setenv-android.sh "$platform" "$runtime" > /dev/null 2>&1
make -f GNUmakefile-cross static dynamic cryptest.exe make -f GNUmakefile-cross static dynamic cryptest.exe
if [ "$?" -eq "0" ]; then if [ "$?" -eq "0" ]; then
echo "$platform:$runtime ==> SUCCESSFUL" >> /tmp/build.log echo "$platform:$runtime ==> SUCCESS" >> /tmp/build.log
else else
echo "$platform:$runtime ==> FAILURE" >> /tmp/build.log echo "$platform:$runtime ==> FAILURE" >> /tmp/build.log
touch /tmp/build.failed touch /tmp/build.failed
@ -56,6 +56,7 @@ do
done done
cat /tmp/build.log cat /tmp/build.log
# let the script fail if any of the builds failed # let the script fail if any of the builds failed
if [ -f /tmp/build.failed ]; then if [ -f /tmp/build.failed ]; then
exit 1 exit 1

View File

@ -20,26 +20,33 @@ for platform in ${PLATFORMS[@]}
do do
make -f GNUmakefile-cross distclean > /dev/null 2>&1 make -f GNUmakefile-cross distclean > /dev/null 2>&1
MESSAGE="Testing for Xcode support of $platform"
LEN=${#MESSAGE}
HEADER=$(seq -f "*" -s '' $LEN)
echo echo
echo "$HEADER" echo "====================================================="
echo "$MESSAGE" echo "Testing for iOS support of $platform"
# Test if we can set the environment for the platform # Test if we can set the environment for the platform
./setenv-ios.sh "$platform" > /dev/null 2>&1 ./setenv-ios.sh "$platform" "$runtime"
if [ "$?" -eq "0" ]; then if [ "$?" -eq "0" ]; then
echo echo
echo "Building for $platform..." echo "Building for $platform using $runtime..."
echo echo
. ./setenv-ios.sh "$platform" # run in subshell to not keep any env vars
make -f GNUmakefile-cross static dynamic cryptest.exe (
. ./setenv-ios.sh "$platform" > /dev/null 2>&1
make -f GNUmakefile-cross static dynamic cryptest.exe
if [ "$?" -eq "0" ]; then
echo "$platform ==> SUCCESS" >> /tmp/build.log
else
echo "$platform ==> FAILURE" >> /tmp/build.log
touch /tmp/build.failed
fi
)
else else
echo echo
echo "$platform not supported by Xcode" echo "$platform not supported by Xcode"
echo "$platform ==> FAILURE" >> /tmp/build.log
touch /tmp/build.failed
fi fi
done done