# 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-cross1
      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-cross1
      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 --log-level=warning state.highstate

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

Drop to the warning log level for Travis
Drop to the warning log level for Travis

archive.extracted is fairly loud because each extracted file is listed
both in INFO log level output and the highstate summary.
This gets around exceeding Travis's 4MB log length limit.
