Permalink
Browse files

Add autotools and cmake builds to travis ci

  • Loading branch information...
jamiesnape committed Sep 21, 2016
1 parent f1f9198 commit 6d2e80fc4252d09078905acb0cc1c6b397533a16
Showing with 17 additions and 3 deletions.
  1. +17 −3 .travis.yml
View
@@ -1,9 +1,23 @@
dist: trusty
sudo: required
language: c
compiler:
- gcc
- clang
env:
- USE_SINGLE=yes
- USE_DOUBLE=yes
script: make -C src
global:
- PREFIX="$TRAVIS_BUILD_DIR/build/install"
matrix:
- USE_AUTOTOOLS=yes
- USE_CMAKE=yes
- USE_MAKEFILE=yes USE_DOUBLE=yes
- USE_MAKEFILE=yes USE_SINGLE=yes
script:
- mkdir -p "$PREFIX"
- if [[ "$USE_AUTOTOOLS" == "yes" ]]; then ./bootstrap && cd build && ../configure --prefix "$PREFIX"; fi
- if [[ "$USE_CMAKE" == "yes" ]]; then cd build && cmake "-DCMAKE_INSTALL_PREFIX=$PREFIX" ..; fi
- if [[ "$USE_MAKEFILE" == "yes" ]]; then cd src; fi
- make && make install

0 comments on commit 6d2e80f

Please sign in to comment.