Add CentOS jenkins ci hooks
This commit is contained in:
@@ -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
25
misc/make-gopath.sh
Executable 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"
|
||||
Reference in New Issue
Block a user