From 86ce8dff523ef4c5977c1a9dd8afb9eadea374cf Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Fri, 3 Mar 2017 18:41:13 +0100 Subject: [PATCH] Test Travis builds --- .travis.yml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index 108298f..948c756 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,12 @@ -language: cpp +language: c + +compiler: + - clang + - gcc + +env: + - BLD=cmake + - BLD=autoconf addons: apt: @@ -9,9 +17,5 @@ addons: - libcutter-dev script: - - autoreconf -vfi - - ./configure --prefix=$HOME/.local/ - - make -j2 - - make install - - cmake -DCMAKE_INSTALL_PREFIX=~/.local . - - make install -j2 + - if [ $BLD == autoconf ]; then autoreconf -vfi && ./configure --prefix=$HOME/.local/ && make -j2 && make install; fi + - if [ $BLD == cmake ]; then cmake -DCMAKE_INSTALL_PREFIX=~/.local . && make -j2 && make install; fi