Add CentOS jenkins ci hooks

This commit is contained in:
James Shubin
2016-01-29 06:00:11 -05:00
parent 08d5a3baae
commit fb8513094b
6 changed files with 86 additions and 1 deletions

View File

@@ -14,7 +14,6 @@ if [ $travis -eq 0 ]; then
fi
sudo yum install -y golang golang-googlecode-tools-stringer
sudo yum install -y hg # some go dependencies are stored in mercurial
sudo yum install -y etcd
fi
# build etcd

25
misc/make-gopath.sh Executable file
View File

@@ -0,0 +1,25 @@
#!/bin/bash
# setup a simple go environment
if ! env | grep -q '^GOPATH='; then
export GOPATH="$HOME/gopath/"
mkdir "$GOPATH"
if ! grep -q '^export GOPATH=' ~/.bashrc; then
echo "export GOPATH=~/gopath/" >> ~/.bashrc
fi
echo "setting go path to: $GOPATH"
fi
echo "gopath is: $GOPATH"
# some versions of golang apparently require this to run go get :(
if ! env | grep -q '^GOBIN='; then
export GOBIN="${GOPATH}bin/"
mkdir "$GOBIN"
if ! grep -q '^export GOBIN=' ~/.bashrc; then
echo 'export GOBIN="${GOPATH}bin/"' >> ~/.bashrc
fi
echo "setting go bin to: $GOBIN"
fi
echo "gobin is: $GOBIN"