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


osx_image: xcode8.2
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
script:
- set -o pipefail && xcodebuild test -workspace Example/CGExtensions.xcworkspace -scheme CGExtensions_Example_macOS -sdk macosx10.12 ONLY_ACTIVE_ARCH=NO | xcpretty
- set -o pipefail && xcodebuild test -workspace Example/CGExtensions.xcworkspace -scheme CGExtensions-Example -sdk iphonesimulator10.2 ONLY_ACTIVE_ARCH=NO | xcpretty
- bundle exec pod lib lint

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


osx_image: xcode8.2
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
script:
- set -o pipefail && xcodebuild clean build test -workspace Example/CGExtensions.xcworkspace -scheme CGExtensions_Example_macOS -sdk macosx10.12 ONLY_ACTIVE_ARCH=NO | xcpretty
- set -o pipefail && xcodebuild clean build test -workspace Example/CGExtensions.xcworkspace -scheme CGExtensions-Example -sdk iphonesimulator10.2 -destination 'platform=iOS Simulator,name=iPhone 7,OS=10.2' ONLY_ACTIVE_ARCH=NO | xcpretty
- bundle exec pod lib lint

Add -destination flag to make test run
Add -destination flag to make test run
