osx_image: xcode8
language: ruby
rvm:
  - '2.0'

before_install:
  - gem install xcpretty -N --no-ri --no-rdoc
  - gem install cocoapods -v '1.1.0.rc2' -N --no-ri --no-rdoc

install:
  - ./install_swiftlint.sh

script:
  - set -o pipefail
  - swiftlint
  - xcodebuild clean test -workspace Example/LogKit.xcworkspace -scheme Example -destination "platform=iOS Simulator,name=iPhone 6" -enableCodeCoverage YES | xcpretty

deploy:
  skip_cleanup: true
  provider: script
  script: ./scripts/deploy.sh
  on:
    tags: true
    branch: master

osx_image: xcode8
language: ruby
rvm:
  - '2.2'

before_install:
  - gem install xcpretty -N --no-ri --no-rdoc
  - gem install cocoapods -v '1.1.0.rc2' -N --no-ri --no-rdoc

install:
  - ./install_swiftlint.sh

script:
  - set -o pipefail
  - swiftlint
  - xcodebuild clean test -workspace Example/LogKit.xcworkspace -scheme Example -destination "platform=iOS Simulator,name=iPhone 6" -enableCodeCoverage YES | xcpretty

deploy:
  skip_cleanup: true
  provider: script
  script: ./scripts/deploy.sh
  on:
    tags: true
    branch: master

Upgrade Ruby version to 2.2 for Travis.
Upgrade Ruby version to 2.2 for Travis.
