summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorBogdan Dobrelya <bdobrelia@mirantis.com>2016-02-15 12:28:34 +0100
committerBogdan Dobrelya <bdobrelia@mirantis.com>2016-03-15 16:03:54 +0100
commite35736537d4397750244de798a19c6674cf5841c (patch)
treead4dccb0b7d6450c46136adbe56f03179405849f /.travis.yml
parent9a02ab05715068740cb125123a271a8f705a6bde (diff)
downloadrabbitmq-server-git-e35736537d4397750244de798a19c6674cf5841c.tar.gz
Add Travis CI job to deploy and smoke test a rabbit OCF
* Add a CI job which triggers only if there are changes to the scripts/rabbitmq-server-ha.ocf * Add a script to setup a cluster by the pacemaker OCF RA and issue a simple smoke test for the cluster membership. Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml12
1 files changed, 10 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml
index 6d9dbc0b71..da19ebc302 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,4 +1,6 @@
sudo: false
+services:
+ - docker
language: erlang
notifications:
email:
@@ -11,14 +13,20 @@ otp_release:
- "R16B03-1"
- "17.5"
- "18.0"
+env:
+ matrix:
+ - GROUP=1 GROUP=2
# 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")
+before_script:
+ - ([ "${GROUP}" = "1" ] && ((test "$TRAVIS_TAG" && git checkout "$TRAVIS_TAG") || (test "$TRAVIS_BRANCH" && git checkout "$TRAVIS_BRANCH")) || /bin/true)
-script: travis_wait make tests
+script:
+ - ([ "${GROUP}" = "1" ] && travis_wait make tests)
+ - ([ "${GROUP}" = "2" ] && sh ./scripts/travis_test_ocf_ra.sh)
cache:
apt: true