language: c++

sudo: required
dist: trusty

cache:
  apt: true
  ccache: true

env:
  global:
    - MAKEFLAGS="-j4"

matrix:
  include:
    - env:
        - RECIPE="clang-64-debug"
      addons:
        apt:
          sources:
            - llvm-toolchain-trusty-3.9
          packages:
            - clang-3.9

    - env:
        - RECIPE="gcc-32-debug"
      addons:
        apt:
          packages:
            - g++-multilib

    - env:
        - RECIPE="gcc-64-release"

    - env:
        - RECIPE="android-mustpass"

    - env:
        - RECIPE="vulkan-mustpass"

    - env:
        - RECIPE="gen-inl-files"
      addons:
        apt:
          packages:
            - python-lxml

script:
  - python2 ./scripts/check_build_sanity.py -r $RECIPE
