os:
  - osx
language: generic
sudo: required
dist: trusty
osx_image: xcode8.2

before_install:
  - if [ "$TRAVIS_OS_NAME" == "osx" ]; then
      gem install xcpretty -N --no-ri --no-rdoc;
    fi

script:
  - if [ "$TRAVIS_OS_NAME" == "osx" ]; then
      swift -version;
      xcodebuild -version;
      xcodebuild -showsdks;
      set -o pipefail;
      xcodebuild -project SimpleRESTLayer.xcodeproj -scheme SimpleRESTLayer -destination "platform=iOS Simulator,OS=10.2,name=iPad Air" -configuration Debug ONLY_ACTIVE_ARCH=NO clean build | xcpretty;
      xcodebuild -project SimpleRESTLayer.xcodeproj -scheme Framework -destination "platform=iOS Simulator,OS=10.2,name=iPad Air" -configuration Release ONLY_ACTIVE_ARCH=NO clean build | xcpretty;
      xcodebuild -project SimpleRESTLayer.xcodeproj -scheme Demo -destination "platform=iOS Simulator,OS=10.2,name=iPad Air" -configuration Release ONLY_ACTIVE_ARCH=NO clean build | xcpretty;
    fi

os:
  - osx
language: generic
sudo: required
dist: trusty
osx_image: xcode9.2

before_install:
  - if [ "$TRAVIS_OS_NAME" == "osx" ]; then
      gem install bundle
      bundle install
    fi

script:
  - if [ "$TRAVIS_OS_NAME" == "osx" ]; then
      swift -version;
      xcodebuild -version;
      xcodebuild -showsdks;
      bundle exec fastlane tests
    fi

Update Travis CI to use Xcode 9.2 and fastlane
Update Travis CI to use Xcode 9.2 and fastlane
