From 450f8af120e1636f947aa4a746f29abf3fdab8ec Mon Sep 17 00:00:00 2001 From: git Date: Fri, 18 Dec 2015 18:34:26 -0500 Subject: [PATCH] Fixed Travis CI build step Specifying specific simulator to test on. Also, added; - branch whitelist - Xcode version select - install cocoapods before building --- .travis.yml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 24cb8fc..2fd593b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,12 +2,19 @@ # * http://www.objc.io/issue-6/travis-ci.html # * https://github.com/supermarin/xcpretty#usage +# branch whitelist +branches: + only: + - develop + - master + language: objective-c -# cache: cocoapods -# podfile: Example/Podfile -# before_install: -# - gem install cocoapods # Since Travis is not always on latest version -# - pod install --project-directory=Example + +osx_image: xcode7.2 + +before_install: +- gem install cocoapods # Since Travis is not always on latest version + script: -- set -o pipefail && xcodebuild test -workspace Example/BugShaker.xcworkspace -scheme BugShaker-Example -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO | xcpretty +- set -o pipefail && xcodebuild test -workspace Example/BugShaker.xcworkspace -scheme BugShaker-Example -destination 'platform=iOS Simulator,name=iPhone 6s' ONLY_ACTIVE_ARCH=NO | xcpretty - pod lib lint