language: swift
osx_image: xcode10.2
matrix:
  include:
    - env: ACTION=test:osx
      install:
        - gem install xcpretty
    - env: ACTION=test:ios
      install:
        - gem install xcpretty
    - env: ACTION=test:tvos
      install:
        - gem install xcpretty
    - env: ACTION=build:carthage:ios
    - env: ACTION=build:carthage:macos
    - env: ACTION=build:carthage:tvos
    - env: ACTION=build:carthage:watchos
    - env: ACTION=build:pod
    - env: ACTION=test:package
    - env: ACTION=test:package SWIFT_VERSION=4.2
    - env: ACTION=test:package
      os: linux
      language: generic
      sudo: required
      dist: trusty
      install:
        - eval "$(cat bin/setup-swiftenv.bash)"
        - bin/swiftenv-install
    - env: ACTION=test:package SWIFT_VERSION=5.0
      os: linux
      language: generic
      sudo: required
      dist: trusty
      install:
        - eval "$(cat bin/setup-swiftenv.bash)"
        - bin/swiftenv-install
  fast_finish: true
script: rake "$ACTION"

language: swift
osx_image: xcode10.2
matrix:
  include:
    - env: ACTION=test:osx
      install:
        - gem install xcpretty
    - env: ACTION=test:ios
      install:
        - gem install xcpretty
    - env: ACTION=test:tvos
      install:
        - gem install xcpretty
    - env: ACTION=build:carthage:ios
    - env: ACTION=build:carthage:macos
    - env: ACTION=build:carthage:tvos
    - env: ACTION=build:carthage:watchos
    - env: ACTION=build:pod
    - env: ACTION=test:package
    - env: ACTION=test:package SWIFT_VERSION=5.0
    - env: ACTION=test:package
      os: linux
      language: generic
      sudo: required
      dist: trusty
      install:
        - eval "$(cat bin/setup-swiftenv.bash)"
        - bin/swiftenv-install
    - env: ACTION=test:package SWIFT_VERSION=5.0
      os: linux
      language: generic
      sudo: required
      dist: trusty
      install:
        - eval "$(cat bin/setup-swiftenv.bash)"
        - bin/swiftenv-install
  fast_finish: true
script: rake "$ACTION"

Test Swift package on 5.0 in Xcode
Test Swift package on 5.0 in Xcode
