summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorAlan Antonuk <alan.antonuk@gmail.com>2014-04-13 11:43:28 -0700
committerAlan Antonuk <alan.antonuk@gmail.com>2014-04-13 12:05:28 -0700
commit8e5c7a061c52217a57b556e91ee1478f4f52d0ad (patch)
tree08c604b89f09c5f1513ff1c76c25ea24f4e8ba74 /.travis.yml
parentea5154bced1c6f4be20420de59ddb6f9d21ce59c (diff)
downloadrabbitmq-c-github-ask-8e5c7a061c52217a57b556e91ee1478f4f52d0ad.tar.gz
Fixes for travis-ci configuration.
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml22
1 files changed, 17 insertions, 5 deletions
diff --git a/.travis.yml b/.travis.yml
index ac5d5b3..6dfaa51 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -15,8 +15,8 @@ env:
# via the "travis encrypt" command using the project repo's public key
- secure: "gDwqo3jHj+HHGzFKnxL/nwZhbVeh2pItw0TbeaHcLtWubUZaf85ViEQRaXPyfnbG7l0OEQq+PjyhKAfvViVq2NP0lGeeu4VM5uMZJhsCLN594BJr39Y4XzOapg0O8mEMhQ0DU2u1Zo4LMgEcRz67aosVQOj6QV30tOzp9fnxn9U="
matrix:
- - PRE_CONFIGURE=true CONFIGURE="cmake .. -DCMAKE_INSTALL_PREFIX=../_install" BUILD_INSTALL="cmake --build . --target install"
- - PRE_CONFIGURE="cd .. && autoreconf -i && cd _build" CONFIGURE="../configure --prefix=`pwd`/_install" BUILD_INSTALL="make install"
+ - BUILD_SYSTEM=cmake
+ - BUILD_SYSTEM=autotools
# Make sure CMake is installed
install:
@@ -28,9 +28,21 @@ before_script:
# Run the Build script
script:
- - if [ ${COVERITY_SCAN_BRANCH} != 1 ]; then $PRE_CONFIGURE ; fi
- - if [ ${COVERITY_SCAN_BRANCH} != 1 ]; then $CONFIGURE ; fi
- - if [ ${COVERITY_SCAN_BRANCH} != 1 ]; then $BUILD_INSTALL ; fi
+ - if [ ${COVERITY_SCAN_BRANCH} != 1 ]; then
+ case $BUILD_SYSTEM in
+ cmake)
+ cmake .. -DCMAKE_INSTALL_PREFIX=`pwd`/_install &&
+ cmake --build . --target install
+ ;;
+ autotools)
+ cd .. &&
+ autoreconf -i &&
+ cd _build &&
+ ../configure --prefix=`pwd`/_install &&
+ make install
+ ;;
+ esac ;
+ fi
# Run Tests
after_script: