# references:
# * http://www.objc.io/issue-6/travis-ci.html
# * https://github.com/supermarin/xcpretty#usage

osx_image: xcode7.3
language: objective-c
# cache: cocoapods
# podfile: XCFitDemo/Podfile
# before_install:
#  - gem install cocoapods 
#  - pod install --project-directory=XCFitDemo
script:
 - cd XCFitDemo/
 - pwd
# - set -o pipefail && xcodebuild test -workspace Example/XCFit.xcworkspace -scheme XCFit-Example -sdk iphonesimulator9.3 ONLY_ACTIVE_ARCH=NO | xcpretty
 - set -o pipefail && xcodebuild -project XCFitDemo.xcodeproj -scheme XCFitDemo -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 6,OS=9.3' clean build test | xcpretty -r html -r junit --test --color


# references:
# * http://www.objc.io/issue-6/travis-ci.html
# * https://github.com/supermarin/xcpretty#usage

osx_image: xcode7.3
language: objective-c
# cache: cocoapods
# podfile: XCFitDemo/Podfile
# before_install:
#  - gem install cocoapods 
#  - pod install --project-directory=XCFitDemo
script:
 - cd XCFitDemo/
 - pwd
 - set -o pipefail && xcodebuild -list
# - set -o pipefail && xcodebuild test -workspace Example/XCFit.xcworkspace -scheme XCFit-Example -sdk iphonesimulator9.3 ONLY_ACTIVE_ARCH=NO | xcpretty
 - set -o pipefail && xcodebuild -project XCFitDemo.xcodeproj -scheme XCFitDemo -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 6,OS=9.3' clean build test | xcpretty -r html -r junit --test --color


Build Scheme before Test on CI
Build Scheme before Test on CI
