# Use trusty environment for a up-to-date version of autotools
sudo: required
dist: trusty
language: c
os:
  - linux
  - osx
compiler:
  - clang
  - gcc
env:
  - CFLAGS=-fsanitize=address
# GCC is linked to Clang on macOS
matrix:
  exclude:
    - os: osx
      compiler: gcc
script:
  - ./autogen.sh
  - ./configure || (cat config.log; exit 1)
  - make || exit 1
  - make distcheck || (cat test-suite.log; exit 1)

# Use trusty environment for a up-to-date version of autotools
sudo: required
dist: trusty
language: c
os:
  - linux
  - osx
compiler:
  - clang
  - gcc
env:
  - CFLAGS=-fsanitize=address
# GCC is linked to Clang on macOS
matrix:
  exclude:
    - os: osx
      compiler: gcc
script:
  - ./autogen.sh
  - ./configure || (cat config.log; exit 1)
  - make || exit 1
  - make distcheck || (find . -name test-suite.log | xargs -t cat; exit 1)

Fix broken cat of test-suite.log on Travis failure
Fix broken cat of test-suite.log on Travis failure

The test-suite.log is located in the dist-directory which depends on the
current version of pick. Use find(1) to locate the file instead.
