sudo: required
arch:
  - amd64
  - ppc64le
os: linux
language: c
compiler:
  - clang
  - gcc

services: docker

matrix:
  include:
    - osx_image: xcode9.3
      compiler: clang
      os: osx
      env:
        - DISTRO=osx:xcode9.3
        - PKG_CONFIG_PATH=/usr/local/opt/openssl/lib/pkgconfig:/usr/local/opt/zlib/lib/pkgconfig
    - osx_image: xcode8.3
      compiler: clang
      os: osx
      env:
        - DISTRO=osx:xcode8.3
        - PKG_CONFIG_PATH=/usr/local/opt/openssl/lib/pkgconfig:/usr/local/opt/zlib/lib/pkgconfig

env:
  matrix:
    - DISTRO=fedora:rawhide
    - DISTRO=fedora:latest
    - DISTRO=centos:latest
    - DISTRO=debian:unstable
    - DISTRO=debian:testing
    - DISTRO=ubuntu:devel

before_install: ./.travis.docker before_install
install: ./.travis.docker install
script: ./.travis.docker script
after_script: ./.travis.docker after_script
