branches:
  only:
    - master
    - develop

os: osx
osx_image: xcode10
language: swift

env:
  global:
    - XCODE_PROJECT="Xcode/FFFoundation.xcodeproj"
    - XCODE_SCHEME=FFFoundation
script: ./scripts/build_xcode.sh

jobs:
  include:
    - name: "iOS Xcode"
      env: XCODE_DESTINATION="platform=iOS Simulator,OS=12.0,name=iPad Pro (9.7-inch)"
    - name: "macOS Xcode"
      env: XCODE_DESTINATION="platform=macOS"
    - name: "macOS SwiftPM"
      script: swift test
    - name: "Linux SwiftPM"
      os: linux
      distro: trusty
      language: generic
      sudo: required
      services:
        - docker
      install: docker pull swift:4.2
      script: ./scripts/build_linux.sh '4.2' 'swift test'

branches:
  only:
    - master

os: osx
osx_image: xcode10
language: swift

env:
  global:
    - XCODE_PROJECT="Xcode/FFFoundation.xcodeproj"
    - XCODE_SCHEME=FFFoundation
script: ./scripts/build_xcode.sh

jobs:
  include:
    - name: "iOS Xcode"
      env: XCODE_DESTINATION="platform=iOS Simulator,OS=12.0,name=iPad Pro (9.7-inch)"
    - name: "macOS Xcode"
      env: XCODE_DESTINATION="platform=macOS"
    - name: "macOS SwiftPM"
      script: swift test
    - name: "Linux SwiftPM"
      os: linux
      distro: trusty
      language: generic
      sudo: required
      services:
        - docker
      install: docker pull swift:4.2
      script: ./scripts/build_linux.sh '4.2' 'swift test'

Remove develop from built branches
Remove develop from built branches
