Skip to content

Commit

Permalink
Update the test/build config/script
Browse files Browse the repository at this point in the history
  • Loading branch information
gmr committed Jul 17, 2015
1 parent bacf816 commit a7d785b
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 22 deletions.
26 changes: 14 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,31 @@
sudo: false
language: erlang
otp_release:
- 17.4
- 17.5
addons:
apt:
packages:
- xsltproc
env:
- BUILD_DIR=$HOME/rabbitmq-public-umbrella RABBIT_TAG=v3_5_1
- BUILD_DIR=$HOME/rabbitmq-public-umbrella RABBIT_TAG=v3_5_3 BUILD_VERSION=v3.5.x
before_install:
- $TRAVIS_BUILD_DIR/travis-umbrella-setup.sh
install:
- sudo apt-get update -qq
- sudo apt-get install -qq -y xsltproc
- "$TRAVIS_BUILD_DIR/travis-umbrella-setup.sh"
script: cd $BUILD_DIR/pgsql-listen-exchange && make test
after_script:
- rm -rf $BUILD_DIR/pgsql-listen-exchange
- rm -rf $BUILD_DIR/pgsql-listen-exchange
before_deploy:
- cd $BUILD_DIR/pgsql-listen-exchange
- VERSION=$TRAVIS_TAG make
- cd $BUILD_DIR/pgsql-listen-exchange
- VERSION=$TRAVIS_TAG make
- cd $BUILD_DIR/pgsql-listen-exchange/dist && zip pgsql-listen-exchange-${TRAVIS_TAG}.zip epgsql*ez pgsql*ez
cache:
apt: true
directories:
- $BUILD_DIR
- $BUILD_DIR
deploy:
provider: releases
api_key:
secure: tqI4Ted0Qp68oHqQ/hXvvsrR0lOB5c6eLLOuFb/HlAJMNKMs6yPw5Z4YY1ldVZsOhr5V7yzkb3yKta0PFXgNIaLwA7vsq9nzgF4cbxLScyzlcb7Sx/7Avr16AOQxiz13NCKDLi64AE+1rUCqvJfAtexQ98Ls/zzzBnBI81t/yOs=
file: $BUILD_DIR/pgsql-listen-exchange/dist/pgsql_listen_exchange-${TRAVIS_TAG}.ez
file: $BUILD_DIR/pgsql-listen-exchange/dist/pgsql-listen-exchange-${TRAVIS_TAG}.zip
on:
tags: true
repo: aweber/pgsql-listen-exchange

19 changes: 9 additions & 10 deletions travis-umbrella-setup.sh
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
#!/bin/bash
BUILD_DIR=${BUILD_DIR:-${HOME}/rabbitmq-public-umbrella}
RABBIT_TAG=${RABBIT_TAG:-v3_5_1}
RABBIT_TAG=${RABBIT_TAG:-v3_5_3}
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
git clone https://github.com/rabbitmq/rabbitmq-public-umbrella.git $BUILD_DIR
cd $BUILD_DIR
make BRANCH=rabbitmq_${RABBIT_TAG} up_c
if [ ! -d "$BUILD_DIR/epgsql-wrapper" ]; then
git clone https://github.com/gmr/epgsql-wrapper.git
fi
rm -rf ${BUILD_DIR}/rabbitmq-public-umbrella
git checkout -b rabbitmq_${RABBIT_TAG}
git pull origin rabbitmq_${RABBIT_TAG}
make co
git clone https://github.com/gmr/epgsql-wrapper.git
cp -r ${TRAVIS_BUILD_DIR} ${BUILD_DIR}/

0 comments on commit a7d785b

Please sign in to comment.