From 9f6f0818c7c528348d38c09003a69a62938f51ab Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Thu, 31 Mar 2016 12:48:22 +0530 Subject: [PATCH] Travis test on osx, linux, gcc and clang --- .travis.yml | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4db05e61..79881443 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,19 @@ language: c -before_install: - - sudo apt-get update -qq - - sudo apt-get install -qq texinfo +sudo: false +os: + - osx + - linux +compiler: + - gcc + - clang +addons: + apt: + packages: + - texinfo script: + - if [[ "${TRAVIS_OS_NAME}" == "osx" ]] && [[ "${CC}" == "gcc" ]]; then + export CC=gcc-4.8; + export CXX=g++-4.8; + fi + - $CC --version - ./configure && make && make check -