run consul on travis

fixes gh-6
This commit is contained in:
Spencer Gibb
2015-03-31 10:07:13 -06:00
parent 41c8575385
commit e994abeb27
3 changed files with 14 additions and 1 deletions

View File

@@ -0,0 +1,2 @@
#!/bin/bash
consul agent -server -bootstrap-expect 1 -data-dir /tmp/consul -ui-dir `dirname $0`/../../../consul_ui

View File

@@ -0,0 +1,11 @@
#!/bin/bash
CONSUL_VER="0.5.0_linux_amd64"
# cleanup
rm "${CONSUL_VER}.*"
rm "consul"
# install consul
wget "https://dl.bintray.com/mitchellh/consul/${CONSUL_VER}.zip"
unzip "${CONSUL_VER}.zip"
# check
./consul --version