sudo: false
language: erlang
otp_release:
  - 17.5
addons:
  apt:
    packages:
      - xsltproc
env:
  - BUILD_DIR=$HOME/rabbitmq-public-umbrella CONSUL_VERSION=0.5.2 RABBIT_TAG=v3_5_4
install:
  - $TRAVIS_BUILD_DIR/travis-umbrella-setup.sh
  - $TRAVIS_BUILD_DIR/travis-install-consul.sh
script: cd $BUILD_DIR/autocluster && make test
after_script:
  - rm -rf $BUILD_DIR/autocluster
before_deploy:
  - cd $BUILD_DIR/autocluster
  - VERSION=$TRAVIS_TAG make
deploy:
  provider: releases
  api_key:
    secure: O24Nny5B1Xzs/tMW9qQrwIhvdaJ7gRc5moESXufCry7nlwunYSjCF/ukleZbL/ZjW4JwNHeUGCNvd0qX/fTx2IMzEkIBnxmYkWGfRNMeTZ9hKvmJiwML15BHCVPDxmw46ZMXPBKdDR46aXNJExuJ0QHUmT4FYvKUZdlHmk8rzvw=
  file: $BUILD_DIR/autocluster/dist/autocluster-${TRAVIS_TAG}.ez
  on:
    tags: true
    repo: aweber/rabbitmq-autocluster-consul
cache:
  apt: true
  directories:
    - $HOME/consul
    - $BUILD_DIR

sudo: false
language: erlang
otp_release:
  - 17.5
addons:
  apt:
    packages:
      - xsltproc
env:
  - BUILD_DIR=$HOME/rabbitmq-public-umbrella CONSUL_VERSION=0.5.2 RABBIT_TAG=v3_5_4
install:
  - $TRAVIS_BUILD_DIR/travis-umbrella-setup.sh
  - $TRAVIS_BUILD_DIR/travis-install-consul.sh
script: cd $BUILD_DIR/autocluster && make test
after_script:
  - rm -rf $BUILD_DIR/autocluster
before_deploy:
  - cd $BUILD_DIR/autocluster
  - VERSION=$TRAVIS_TAG make
deploy:
  provider: releases
  api_key:
    secure: O24Nny5B1Xzs/tMW9qQrwIhvdaJ7gRc5moESXufCry7nlwunYSjCF/ukleZbL/ZjW4JwNHeUGCNvd0qX/fTx2IMzEkIBnxmYkWGfRNMeTZ9hKvmJiwML15BHCVPDxmw46ZMXPBKdDR46aXNJExuJ0QHUmT4FYvKUZdlHmk8rzvw=
  file: $BUILD_DIR/autocluster/dist/autocluster-${TRAVIS_TAG}.ez
  on:
    tags: true
    repo: aweber/rabbitmq-autocluster
cache:
  apt: true
  directories:
    - $HOME/consul
    - $BUILD_DIR

Fix the repo name for deployment
Fix the repo name for deployment
