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

osx_image: xcode8.2
xcode_sdk: iphonesimulator10.1
language: objective-c
# cache: cocoapods
podfile: Example/Podfile
before_install:
- gem install cocoapods # Since Travis is not always on latest version
- gem install xcpretty
- pod install --project-directory=Example
script:
- set -o pipefail && xcodebuild test -workspace Example/VoucherifySwiftSdk.xcworkspace -scheme VoucherifySwiftSdk-Example -destination 'platform=iOS Simulator,name=iPhone 6,OS=10.1' ONLY_ACTIVE_ARCH=NO | xcpretty
- pod lib lint

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

# https://docs.travis-ci.com/user/reference/osx/#using-os-x
osx_image: xcode10
xcode_sdk: iphonesimulator12.0
language: swift
# cache: cocoapods
podfile: Example/Podfile

before_install:
- gem install xcpretty
- gem install cocoapods # Since Travis is not always on latest version
- pod repo update
- pod install --project-directory=Example

script:
- set -o pipefail && xcodebuild test -workspace Example/VoucherifySwiftSdk.xcworkspace -scheme VoucherifySwiftSdk-Example -destination 'platform=iOS Simulator,name=iPhone 8,OS=12.0' ONLY_ACTIVE_ARCH=NO | xcpretty
- pod lib lint

Update Travis configuration to Xcode 10 configuration
Update Travis configuration to Xcode 10 configuration 

* Invoke cocoapods update for external dependencies
* Update osx, xcode_sdk and language