language: python

matrix:
  fast_finish: true
  include:
    - sudo: false
      script:
         - ./mach test-tidy --no-progress --all
         - ./mach test-tidy --no-progress --self-test
      cache: false
    - sudo: 9000
      dist: trusty
      script:
         - ./mach build -d --verbose
         - ./mach build-geckolib
         - ./mach test-geckolib
         - ./mach test-unit
         - ./mach test-compiletest
         - bash etc/ci/check_no_unwrap.sh
         - bash etc/ci/lockfile_changed.sh
         - bash etc/ci/manifest_changed.sh
      cache:
        directories:
          - .cargo
          - .servo
          - $HOME/.ccache
      env: CCACHE=/usr/bin/ccache
      addons:
        apt:
          packages:
            - cmake
            - freeglut3-dev
            - gperf
            - libosmesa6-dev
            - libgles2-mesa-dev
            - python-virtualenv
            - xorg-dev
            - ccache
            - libdbus-glib-1-dev
            - libavformat-dev
            - libavcodec-dev
            - libavutil-dev

branches:
  only:
    - master

notifications:
  webhooks:
    - https://buildtimetrend.herokuapp.com/travis

language: python

matrix:
  fast_finish: true
  include:
    - sudo: false
      script:
         - ./mach test-tidy --no-progress --all
         - ./mach test-tidy --no-progress --self-test
      cache: false
    - sudo: 9000
      dist: trusty
      script:
         - ./mach build -d --verbose
         - ./mach test-compiletest
         - ./mach test-unit
         - ./mach build-geckolib
         - ./mach test-geckolib
         - bash etc/ci/check_no_unwrap.sh
         - bash etc/ci/lockfile_changed.sh
         - bash etc/ci/manifest_changed.sh
      cache:
        directories:
          - .cargo
          - .servo
          - $HOME/.ccache
      env: CCACHE=/usr/bin/ccache
      addons:
        apt:
          packages:
            - cmake
            - freeglut3-dev
            - gperf
            - libosmesa6-dev
            - libgles2-mesa-dev
            - python-virtualenv
            - xorg-dev
            - ccache
            - libdbus-glib-1-dev
            - libavformat-dev
            - libavcodec-dev
            - libavutil-dev

branches:
  only:
    - master

notifications:
  webhooks:
    - https://buildtimetrend.herokuapp.com/travis

Reorder steps in Travis to avoid rebuilding on `mach test-unit`
Reorder steps in Travis to avoid rebuilding on `mach test-unit`
