Permalink
Browse files

Prepare to host CI on travis-ci.org

  • Loading branch information...
1 parent ac7f310 commit 9f7ad98f5e2e1c3b2c34451e25fafc9973cd74c9 @michaelklishin michaelklishin committed Oct 6, 2013
Showing with 33 additions and 0 deletions.
  1. +7 −0 .travis.yml
  2. +26 −0 bin/ci/before_build.sh
View
@@ -0,0 +1,7 @@
+language: haskell
+before_script: "./bin/ci/before_build.sh"
+services:
+ - rabbitmq
+branches:
+ only:
+ - master
View
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+${RABBITMQCTL:="sudo rabbitmqctl"}
+${RABBITMQ_PLUGINS:="sudo rabbitmq-plugins"}
+
+# guest:guest has full access to /
+
+$RABBITMQCTL add_vhost /
+$RABBITMQCTL add_user guest guest
+$RABBITMQCTL set_permissions -p / guest ".*" ".*" ".*"
+
+# haskell_amqp:haskell_amqp_password has full access to haskell_amqp_testbed
+
+$RABBITMQCTL add_vhost haskell_amqp_testbed
+$RABBITMQCTL add_user haskell_amqp haskell_amqp_password
+$RABBITMQCTL set_permissions -p haskell_amqp_testbed haskell_amqp ".*" ".*" ".*"
+
+# guest:guest has full access to haskell_amqp_testbed
+
+$RABBITMQCTL set_permissions -p haskell_amqp_testbed guest ".*" ".*" ".*"
+
+
+# haskell_amqp_reader:reader_password has read access to haskell_amqp_testbed
+
+$RABBITMQCTL add_user haskell_amqp_reader reader_password
+$RABBITMQCTL set_permissions -p haskell_amqp_testbed haskell_amqp_reader "^---$" "^---$" ".*"

0 comments on commit 9f7ad98

Please sign in to comment.