From e83d07f00bcd47daaf8b8f20682011484880fb76 Mon Sep 17 00:00:00 2001 From: Kyle Neideck Date: Wed, 27 Dec 2017 17:50:42 +1100 Subject: [PATCH] .travis.yml: Update Xcode versions. Print logs if package.sh fails. Travis CI no longer supports building with Xcode 8, 8.1 or 8.2. --- .travis.yml | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/.travis.yml b/.travis.yml index f83af9c..09287a1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,10 +2,14 @@ language: objective-c matrix: include: - os: osx - osx_image: xcode9.1 + osx_image: xcode9.2 xcode_sdk: macosx10.13 sudo: required env: DEPLOY=true + - os: osx + osx_image: xcode9.1 + xcode_sdk: macosx10.13 + sudo: required - os: osx osx_image: xcode9 xcode_sdk: macosx10.13 @@ -14,18 +18,6 @@ matrix: osx_image: xcode8.3 xcode_sdk: macosx10.12 sudo: required - - os: osx - osx_image: xcode8.2 - xcode_sdk: macosx10.12 - sudo: required - - os: osx - osx_image: xcode8.1 - xcode_sdk: macosx10.12 - sudo: required - - os: osx - osx_image: xcode8 - xcode_sdk: macosx10.11 - sudo: required - os: osx osx_image: xcode7.3 xcode_sdk: macosx10.11 @@ -77,8 +69,8 @@ script: - if ls -la "/Library/LaunchDaemons/com.bearisdriving.BGM.XPCHelper.plist"; then false; fi # Return early if we're not testing packaging on this OS X version. - if [[ "$PACKAGE" == "false" ]]; then exit 0; fi -# Build the .pkg installer. - - ./package.sh +# Build the .pkg installer. (Print the logs if it fails.) + - ./package.sh || (cat build_and_install.log && false) # Install the .pkg. - sudo installer -pkg Background-Music-*/BackgroundMusic-*.pkg -target / -verbose -dumplog # Check the BGM dirs and files were installed again.