Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

Commit

Permalink
Adapt .travis.yml to erlang.mk
Browse files Browse the repository at this point in the history
  • Loading branch information
dumbbell committed Oct 23, 2015
1 parent 11c0d46 commit 4ee1c0a
Showing 1 changed file with 9 additions and 17 deletions.
26 changes: 9 additions & 17 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,14 @@ otp_release:
- "R16B03-1"
- "17.5"
- "18.0"
install:
- if [ ! -d "$HOME/rabbitmq-public-umbrella/.git" ]; then git clone https://github.com/rabbitmq/rabbitmq-public-umbrella.git $HOME/rabbitmq-public-umbrella; fi
- cd $HOME/rabbitmq-public-umbrella
- make co
- make up
before_script:
- IFS="/" read -a PARTS <<< "$TRAVIS_REPO_SLUG"
- export TEST_DIR=$HOME/rabbitmq-public-umbrella/${PARTS[1]}
- rm -rf ${TEST_DIR}
- cp -r ${TRAVIS_BUILD_DIR} ${TEST_DIR}
- cd ${TEST_DIR}
script: make test
before_cache:
- rm -rf ${TEST_DIR}
- cd $HOME

# The checkout made by Travis is a "detached HEAD". We switch back
# to a tag or a branch. This pleases our git_rmq fetch method in
# rabbitmq-components.mk and the proper tag/branch is selected in
# dependencies too.
before_script: (test "$TRAVIS_TAG" && git checkout "$TRAVIS_TAG") || (test "$TRAVIS_BRANCH" && git checkout "$TRAVIS_BRANCH")

script: make tests

cache:
apt: true
directories:
- $HOME/rabbitmq-public-umbrella

0 comments on commit 4ee1c0a

Please sign in to comment.