language: swift
osx_image: xcode10.2

jobs:
  include:
      - stage: "Xcode"
        name: "Run tests on iOS"
        script: xcrun xcodebuild test -destination "platform=iOS Simulator,OS=12.2,name=iPhone X" -workspace "Bond.xcworkspace" -scheme "Bond-iOS"
        after_success: 'bash <(curl -s https://codecov.io/bash)'
      -
        name: "Build for macOS"
        script: xcrun xcodebuild build -destination "platform=macOS" -workspace "Bond.xcworkspace" -scheme "Bond-macOS"
      -
        name: "Build for tvOS"
        script: xcrun xcodebuild build -destination "platform=tvOS Simulator,OS=12.2,name=Apple TV 4K" -workspace "Bond.xcworkspace" -scheme "Bond-tvOS"

      - stage: "Swift Package Manager"
        name: "Run Tests"
        script: swift test

      - stage: "CocoaPods"
        name: "Lint Podspec"
        script: pod lib lint

language: swift
osx_image: xcode10.2

jobs:
  include:
      - stage: "Xcode"
        name: "Run tests on iOS"
        script: xcrun xcodebuild test -destination "platform=iOS Simulator,OS=12.2,name=iPhone X" -workspace "Bond.xcworkspace" -scheme "Bond-iOS"
        after_success: 'bash <(curl -s https://codecov.io/bash)'
      -
        name: "Build for macOS"
        script: xcrun xcodebuild build -destination "platform=macOS" -workspace "Bond.xcworkspace" -scheme "Bond-macOS"
      -
        name: "Build for tvOS"
        script: xcrun xcodebuild build -destination "platform=tvOS Simulator,OS=12.2,name=Apple TV 4K" -workspace "Bond.xcworkspace" -scheme "Bond-tvOS"

      - stage: "Swift Package Manager"
        name: "Run Tests"
        script: swift test
        
Remove CocoaPods step from ;Travis
Remove CocoaPods step from ;Travis
