diff options
author | Alan Antonuk <alan.antonuk@gmail.com> | 2014-04-13 11:43:28 -0700 |
---|---|---|
committer | Alan Antonuk <alan.antonuk@gmail.com> | 2014-04-13 12:05:28 -0700 |
commit | 8e5c7a061c52217a57b556e91ee1478f4f52d0ad (patch) | |
tree | 08c604b89f09c5f1513ff1c76c25ea24f4e8ba74 | |
parent | ea5154bced1c6f4be20420de59ddb6f9d21ce59c (diff) | |
download | rabbitmq-c-github-ask-8e5c7a061c52217a57b556e91ee1478f4f52d0ad.tar.gz |
Fixes for travis-ci configuration.
-rw-r--r-- | .travis.yml | 22 |
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: |