Created
July 16, 2013 01:17
-
-
Save keeb-zz/6004992 to your computer and use it in GitHub Desktop.
git pull request cloning and docker build+tests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git config --global --add remote.origin.fetch "+refs/pull/*/head:refs/remotes/origin/pr/*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export GOPATH=/home/keeb/development/go1.1 | |
export PATH=$GOPATH/bin:$PATH | |
p=`pwd` | |
if [ -z "$1" ]; then branch="master"; else branch=$1; fi | |
rm -rf $GOPATH/src/github.com | |
mkdir -p $GOPATH/src/github.com/dotcloud | |
cd $GOPATH/src/github.com/dotcloud | |
git clone https://github.com/dotcloud/docker -b $branch | |
cd docker | |
go get -v github.com/dotcloud/docker/... | |
go install -v github.com/dotcloud/docker/... | |
su -c "PATH=$GOPATH/bin:$PATH go test -v" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This script works only for dotcloud pull requests.