# Python is not supported on OS X yet
# But a system python is installed for all workers
language: cpp

branches:
  except:
    - master

# NOTE: Make sure the matrix covers all node types in top.sls
# sudo: required and dist: trusty enable usage of Trusty
matrix:
  include:
    - env: SALT_NODE_ID=servo-head
      os: linux
      sudo: required
      dist: trusty
    - env: SALT_NODE_ID=servo-linux-android1
      os: linux
      sudo: required
      dist: trusty
    - env: SALT_NODE_ID=servo-mac1
      os: osx
    - env: SALT_NODE_ID=servo-linux1
      os: linux
      sudo: required
      dist: trusty
    - env: SALT_NODE_ID=servo-master
      os: linux
      sudo: required
      dist: trusty

before_install:
  - .travis/install_salt -F -c .travis -- "${TRAVIS_OS_NAME}"

install:
  - .travis/setup_salt_roots

  # For debugging, check the grains reported by the Travis builder
  - sudo salt-call --id="${SALT_NODE_ID}" grains.items

script:
  # Minimally validate YAML and Jinja at a basic level
  - sudo salt-call --id="${SALT_NODE_ID}" --retcode-passthrough state.show_highstate
  # Full on installation test
  - sudo salt-call --id="${SALT_NODE_ID}" --retcode-passthrough state.highstate

notifications:
  webhooks: http://build.servo.org:54856/travis

# Python is not supported on OS X yet
# But a system python is installed for all workers
language: cpp

# NOTE: Make sure the matrix covers all node types in top.sls
# sudo: required and dist: trusty enable usage of Trusty
matrix:
  include:
    - env: SALT_NODE_ID=servo-head
      os: linux
      sudo: required
      dist: trusty
    - env: SALT_NODE_ID=servo-linux-android1
      os: linux
      sudo: required
      dist: trusty
    - env: SALT_NODE_ID=servo-mac1
      os: osx
    - env: SALT_NODE_ID=servo-linux1
      os: linux
      sudo: required
      dist: trusty
    - env: SALT_NODE_ID=servo-master
      os: linux
      sudo: required
      dist: trusty

before_install:
  - .travis/install_salt -F -c .travis -- "${TRAVIS_OS_NAME}"

install:
  - .travis/setup_salt_roots

  # For debugging, check the grains reported by the Travis builder
  - sudo salt-call --id="${SALT_NODE_ID}" grains.items

script:
  # Minimally validate YAML and Jinja at a basic level
  - sudo salt-call --id="${SALT_NODE_ID}" --retcode-passthrough state.show_highstate
  # Full on installation test
  - sudo salt-call --id="${SALT_NODE_ID}" --retcode-passthrough state.highstate

notifications:
  webhooks: http://build.servo.org:54856/travis

Revert "Don't run Travis builds on master"
Revert "Don't run Travis builds on master"

This reverts commit 9cbbbf0b1008a0566667125bf069c2e3c916f4f8.
