language: c
sudo: required
dist: xenial
cache: ccache
services:
  - docker
env:
  - TR_ARCH=local
  - TR_ARCH=local       CLANG=1
  - TR_ARCH=alpine
  - TR_ARCH=fedora-asan
  - TR_ARCH=x86_64
  - TR_ARCH=x86_64      CLANG=1
  - TR_ARCH=armv7hf
  - TR_ARCH=aarch64
  - TR_ARCH=ppc64le
  - TR_ARCH=s390x
  - TR_ARCH=armv7hf     CLANG=1
  - TR_ARCH=aarch64     CLANG=1
  - TR_ARCH=ppc64le     CLANG=1
  - TR_ARCH=alpine      CLANG=1
  - TR_ARCH=docker-test
  - TR_ARCH=fedora-rawhide
  - TR_ARCH=fedora-rawhide-aarch64
  - TR_ARCH=centos
matrix:
  allow_failures:
    - env: TR_ARCH=docker-test
    - env: TR_ARCH=fedora-rawhide
    - env: TR_ARCH=fedora-rawhide-aarch64
    - env: TR_ARCH=s390x
    - env: TR_ARCH=local        GCOV=1
script:
  - sudo make CCACHE=1 -C scripts/travis $TR_ARCH
after_success:
  - ccache -s
  - make -C scripts/travis after_success
group: deprecated-2017Q2
