2015-10-03 08:35:25 -04:00
|
|
|
language: c
|
2016-03-31 03:18:22 -04:00
|
|
|
sudo: false
|
|
|
|
os:
|
|
|
|
- osx
|
|
|
|
- linux
|
|
|
|
compiler:
|
|
|
|
- gcc
|
2018-02-07 18:42:25 -05:00
|
|
|
- clang
|
2016-03-31 03:18:22 -04:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
2017-02-14 08:22:49 -05:00
|
|
|
- yasm
|
2016-03-31 03:18:22 -04:00
|
|
|
- texinfo
|
2018-02-28 10:12:24 -05:00
|
|
|
script:
|
2017-02-14 10:24:59 -05:00
|
|
|
- if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
|
2017-10-14 13:23:57 -04:00
|
|
|
brew update;
|
2017-02-14 10:24:59 -05:00
|
|
|
brew install yasm;
|
|
|
|
fi
|
|
|
|
# On OSX, gcc is a wrapper around clang, so use gcc from homebrew
|
|
|
|
- if [[ "${TRAVIS_OS_NAME}" == "osx" ]] && [[ "${CC}" == "gcc" ]]; then
|
2018-02-07 18:30:54 -05:00
|
|
|
brew install gcc;
|
2018-02-07 18:43:03 -05:00
|
|
|
brew link --overwrite gcc;
|
2018-02-07 18:30:54 -05:00
|
|
|
export CC=gcc;
|
|
|
|
export CXX=g++;
|
2017-02-14 10:24:59 -05:00
|
|
|
fi
|
2016-03-31 03:18:22 -04:00
|
|
|
- $CC --version
|
2017-02-14 10:01:21 -05:00
|
|
|
- ./autogen.sh
|
2015-10-03 08:58:24 -04:00
|
|
|
- ./configure && make && make check
|