27 lines
711 B
YAML
27 lines
711 B
YAML
language: c
|
|
|
|
os:
|
|
- linux
|
|
- osx
|
|
|
|
before_install:
|
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
|
sudo apt-get -qq update;
|
|
sudo apt-get -y install libssl-dev;
|
|
fi
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
|
brew update;
|
|
brew install openssl;
|
|
fi
|
|
|
|
install:
|
|
- wget "https://github.com/alfredh/pytools/raw/master/ccheck.py"
|
|
|
|
script:
|
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
|
make EXTRA_CFLAGS=-Werror;
|
|
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";
|
|
fi
|
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then python2 ccheck.py ; fi
|