Skip to content

Commit

Permalink
Rework Travis configuration
Browse files Browse the repository at this point in the history
- Use an explicit matrix instead of excluding

- Split the build into two types: default and mandoc

- Use literal blocks for shell scripts
  • Loading branch information
mptre committed Jul 18, 2017
1 parent 8a70fe7 commit ce4e1b9
Showing 1 changed file with 26 additions and 22 deletions.
48 changes: 26 additions & 22 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,37 @@
sudo: required
dist: trusty
language: c
os:
- linux
- osx
compiler:
- clang
- gcc
env:
- CFLAGS=-fsanitize=address
- CFLAGS=-fsanitize=undefined
matrix:
exclude:
# UBSan requires GCC >= 4.9
include:
- os: linux
compiler: clang
env: BUILD_TYPE=default CFLAGS=-fsanitize=address
- os: linux
compiler: clang
env: BUILD_TYPE=default CFLAGS=-fsanitize=undefined
- os: linux
compiler: gcc
env: CFLAGS=-fsanitize=undefined
# UBSan requires LLVM >= 3.3
env: BUILD_TYPE=default CFLAGS=-fsanitize=address
- os: osx
compiler: clang
env: CFLAGS=-fsanitize=undefined
# GCC is linked to Clang on macOS
env: BUILD_TYPE=default CFLAGS=-fsanitize=address
- os: osx
compiler: gcc
compiler: clang
env: BUILD_TYPE=mandoc
install:
- if [ $TRAVIS_OS_NAME = osx ]; then brew install mandoc; fi
- |
if [ $BUILD_TYPE = mandoc ]; then
brew install mandoc
fi
script:
- ./autogen.sh
- ./configure || (cat config.log; exit 1)
- make || exit 1
- make distcheck || (find . -name test-suite.log | xargs -t cat; exit 1)
- if [ $TRAVIS_OS_NAME = osx ]; then mandoc -Tlint pick.1; fi
- |
if [ $BUILD_TYPE = default ]; then
./autogen.sh
./configure || (cat config.log; exit 1)
make || exit 1
make distcheck || (find . -name test-suite.log | xargs -t cat; exit 1)
fi
- |
if [ $BUILD_TYPE = mandoc ]; then
mandoc -Tlint pick.1
fi

0 comments on commit ce4e1b9

Please sign in to comment.