From fd381c703fd62142da3c98144a7066234fe12dc6 Mon Sep 17 00:00:00 2001 From: "Dmitrij D. Czarkoff" Date: Mon, 17 Oct 2016 09:02:00 +0200 Subject: [PATCH] More diverse testing (#12) * More diverse testing * Simplify --- .travis.yml | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 944a712..3fcd677 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,12 +1,26 @@ language: c -before_install: - - sudo apt-get -qq update - - sudo apt-get -y install libssl-dev +os: + - linux + - osx + +compiler: + - clang + - gcc + +addons: + apt: + packages: + libssl-dev install: - wget "https://github.com/alfredh/pytools/raw/master/ccheck.py" script: - - make EXTRA_CFLAGS=-Werror - - python2 ccheck.py + - 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