language: cpp

cache: ccache

matrix:
  include:
    - env: NAME="Linux Build" GCC_VERSION=7
      os: linux
      dist: trusty
      addons:
        apt:
          sources:
            - ubuntu-toolchain-r-test
          packages:
            - gcc-7
            - g++-7
            - ninja-build
      install: ./.travis/build-x86_64-linux/deps.sh
      script: ./.travis/build-x86_64-linux/build.sh
    - env: NAME="Linux Build" GCC_VERSION=8
      os: linux
      dist: trusty
      addons:
        apt:
          sources:
            - ubuntu-toolchain-r-test
          packages:
            - gcc-8
            - g++-8
            - ninja-build
      install: ./.travis/build-x86_64-linux/deps.sh
      script: ./.travis/build-x86_64-linux/build.sh
    - env: NAME="Linux aarch64 Build"
      os: linux
      dist: bionic
      addons:
        apt:
          sources:
            - ubuntu-toolchain-r-test
          packages:
          - gcc-8-aarch64-linux-gnu
          - g++-8-aarch64-linux-gnu
          - ninja-build
          - qemu-user
      install: ./.travis/build-aarch64-linux/deps.sh
      script: ./.travis/build-aarch64-linux/build.sh
    - env: NAME="macOS Build"
      os: osx
      sudo: false
      osx_image: xcode10.2
      install: ./.travis/build-x86_64-macos/deps.sh
      script: ./.travis/build-x86_64-macos/build.sh
    - env: NAME="Test - Fuzz against Unicorn"
      os: linux
      dist: bionic
      addons:
        apt:
          sources:
            - ubuntu-toolchain-r-test
          packages:
            - gcc-7
            - g++-7
            - llvm-dev
            - ninja-build
      install: ./.travis/test-with-unicorn-on-x86_64-linux/deps.sh
      script: ./.travis/test-with-unicorn-on-x86_64-linux/build.sh
    - env: NAME="Test - SSE3 only"
      os: linux
      dist: bionic
      addons:
        apt:
          sources:
            - ubuntu-toolchain-r-test
          packages:
            - gcc-7
            - g++-7
            - llvm-dev
            - ninja-build
      install: ./.travis/sse3-only-on-x86_64-linux/deps.sh
      script: ./.travis/sse3-only-on-x86_64-linux/build.sh
