2016-09-17 10:00:01 +02:00
|
|
|
language: c
|
|
|
|
|
2016-10-17 09:02:00 +02:00
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
- osx
|
|
|
|
|
|
|
|
compiler:
|
|
|
|
- clang
|
|
|
|
- gcc
|
|
|
|
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
libssl-dev
|
2016-09-17 10:00:01 +02:00
|
|
|
|
|
|
|
install:
|
|
|
|
- wget "https://github.com/alfredh/pytools/raw/master/ccheck.py"
|
|
|
|
|
|
|
|
script:
|
2016-10-17 09:02:00 +02:00
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
|
|
|
make EXTRA_CFLAGS=-Werror CCACHE=;
|
|
|
|
fi
|
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
|
|
|
make EXTRA_CFLAGS="-I/usr/local/opt/openssl/include -Werror" EXTRA_LFLAGS="-L/usr/local/opt/openssl/lib" CCACHE=;
|
|
|
|
fi
|
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then python2 ccheck.py ; fi
|