summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitrij D. Czarkoff <czarkoff@users.noreply.github.com>2016-10-19 12:19:31 +0200
committerAlfred E. Heggestad <alfred.heggestad@gmail.com>2016-10-19 12:19:31 +0200
commit87b8e1785212acf52ceff7fc9ffb2e7509ff448d (patch)
treea31defa631564dbd745a4f0ed1e674beeed8da32
parentf3ce13ab74715f3dbe142312b9abc009c803ca4a (diff)
More diverse testing (#161)
Test on both Ubuntu and OS X, with both clang and gcc
-rw-r--r--.travis.yml34
1 files changed, 23 insertions, 11 deletions
diff --git a/.travis.yml b/.travis.yml
index 8e892d4..5062d90 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,18 +1,30 @@
language: c
-before_install:
- - sudo apt-get update -qq
+os:
+ - linux
+ - osx
+
+compiler:
+ - clang
+ - gcc
+
+env:
+ - LIBRE=re-0.4.17 LIBREM=rem-0.4.7
+
+sudo: require
+
+addons:
+ apt:
+ packages:
+ libssl-dev
install:
- - wget "http://www.creytiv.com/pub/re-0.4.17.tar.gz"
- - tar -xzf re-0.4.17.tar.gz
- - cd re-0.4.17 && make && sudo make install && cd ..
- - wget "http://www.creytiv.com/pub/rem-0.4.7.tar.gz"
- - tar -xzf rem-0.4.7.tar.gz
- - cd rem-0.4.7 && make && sudo make install && cd ..
- - sudo ldconfig
- - wget "https://github.com/alfredh/pytools/raw/master/ccheck.py"
+ - curl "http://www.creytiv.com/pub/${LIBRE}.tar.gz" | tar xzf -
+ - curl "http://www.creytiv.com/pub/${LIBREM}.tar.gz" | tar xzf -
+ - curl -OL 'https://github.com/alfredh/pytools/raw/master/ccheck.py'
+ - for p in ${LIBRE} ${LIBREM}; do cd $p && sudo PATH="$PATH" make install && cd - && sudo rm -Rf $p; done
+ - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo ldconfig; fi
script:
- - make test
+ - make V=1 CCACHE= info test
- python2 ccheck.py