branches:
  only:
    - master

language: generic
matrix:
  include:
    - name: CocoaPods Lint & Danger
      os: osx
      osx_image: xcode10.1
      language: ruby
      script:
        - PODSPEC=1 ./script/travis-script-macos
        - bundle exec danger
    - &swiftpm_linux
      name: SwiftPM / Linux / Swift 4.2.4
      os: linux
      sudo: required
      dist: trusty
      env:
        - SWIFT_VERSION=4.2.4
      install: ./script/travis-install-linux
      script: ./script/travis-script-linux
    - <<: *swiftpm_linux
      name: SwiftPM / Linux / Swift 5.0.3
      env:
        - SWIFT_VERSION=5.0.3
    - <<: *swiftpm_linux
      name: SwiftPM / Linux / Swift 5.1 Development
      env:
        - SWIFT_VERSION=5.1-DEVELOPMENT-SNAPSHOT-2019-09-09-a

notifications:
  email: false

branches:
  only:
    - master

language: generic
matrix:
  include:
    - name: CocoaPods Lint & Danger
      os: osx
      osx_image: xcode10.3
      language: ruby
      script:
        - PODSPEC=1 ./script/travis-script-macos
        - bundle exec danger
    - &swiftpm_linux
      name: SwiftPM / Linux / Swift 4.2.4
      os: linux
      sudo: required
      dist: trusty
      env:
        - SWIFT_VERSION=4.2.4
      install: ./script/travis-install-linux
      script: ./script/travis-script-linux
    - <<: *swiftpm_linux
      name: SwiftPM / Linux / Swift 5.0.3
      env:
        - SWIFT_VERSION=5.0.3
    - <<: *swiftpm_linux
      name: SwiftPM / Linux / Swift 5.1 Development
      env:
        - SWIFT_VERSION=5.1-DEVELOPMENT-SNAPSHOT-2019-09-09-a

notifications:
  email: false

Use Xcode 10.3 image for CocoaPods linting
[CI] Use Xcode 10.3 image for CocoaPods linting
