Skip to content
This repository has been archived by the owner on Feb 15, 2018. It is now read-only.

Commit

Permalink
Travis build updates
Browse files Browse the repository at this point in the history
  • Loading branch information
gmr committed Jul 30, 2015
1 parent e7742f8 commit 6a5a2d0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ addons:
- xsltproc
env:
- BUILD_DIR=$HOME/rabbitmq-public-umbrella CONSUL_VERSION=0.5.2 RABBIT_TAG=v3_5_4
before_install:
- $TRAVIS_BUILD_DIR/travis-umbrella-setup.sh
install:
- $TRAVIS_BUILD_DIR/travis-umbrella-setup.sh
- $TRAVIS_BUILD_DIR/travis-install-consul.sh
script: cd $BUILD_DIR/rabbitmq-autocluster-consul && make test
after_script:
Expand Down
2 changes: 1 addition & 1 deletion travis-install-consul.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
CONSUL_VERSION=${CONSUL_VERSION:-0.5.0}
CONSUL_VERSION=${CONSUL_VERSION:-0.5.2}
if [ ! -d "${HOME}/consul" ]; then
echo "Downloading Consul ${CONSUL_VERSION}";
curl -s -L -o /tmp/${CONSUL_VERSION}_linux_amd64.zip https://dl.bintray.com/mitchellh/consul/${CONSUL_VERSION}_linux_amd64.zip
Expand Down
16 changes: 8 additions & 8 deletions travis-umbrella-setup.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#!/bin/bash
BUILD_DIR=${BUILD_DIR:-${HOME}/rabbitmq-public-umbrella}
RABBIT_TAG=${RABBIT_TAG:-v3_5_1}
RABBIT_TAG=${RABBIT_TAG:-v3_5_4}
echo "Build dir: ${BUILD_DIR}"
echo "Travis build dir: ${TRAVIS_BUILD_DIR}"
if [ ! -d $BUILD_DIR ]; then
git clone https://github.com/rabbitmq/rabbitmq-public-umbrella.git $BUILD_DIR
cd $BUILD_DIR
make co
if [ -d ${BUILD_DIR} ]; then
rm -rf ${BUILD_DIR}
fi
cd $BUILD_DIR
make BRANCH=rabbitmq_${RABBIT_TAG} up_c
rm -rf ${BUILD_DIR}/rabbitmq-autocluster-consul
git clone https://github.com/rabbitmq/rabbitmq-public-umbrella.git ${BUILD_DIR}
cd ${BUILD_DIR}
git checkout -b rabbitmq_${RABBIT_TAG}
git pull origin rabbitmq_${RABBIT_TAG}
make co
cp -r ${TRAVIS_BUILD_DIR} ${BUILD_DIR}/

0 comments on commit 6a5a2d0

Please sign in to comment.