Skip to content

Instantly share code, notes, and snippets.

@rastasheep
Last active August 29, 2015 14:11

Revisions

  1. rastasheep revised this gist Dec 15, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion setup.sh
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    VERSION=$1
    OWNER=$2
    wget "https://storage.googleapis.com/golang/go$VERSION.linux-amd64.tar.gz"
    sudo tar -C "/usr/local -xzf go$VERSION.linux-amd64.tar.gz"
    sudo tar -C /usr/local -xzf "go$VERSION.linux-amd64.tar.gz"
    sudo ln -s /usr/local/go/bin/go /usr/local/bin/
    sudo apt-get install -y mercurial
    echo "export PATH=$PATH:/usr/local/go/bin" >> ~/.bash_profile
  2. rastasheep revised this gist Dec 15, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion setup.sh
    Original file line number Diff line number Diff line change
    @@ -9,6 +9,6 @@ mkdir -p /home/runner/workspace/src /home/runner/workspace/bin /home/runner/work
    echo "export GOPATH=/home/runner/workspace" >> /home/runner/.bash_profile
    echo "export PATH=$PATH:/home/runner/workspace/bin" >> /home/runner/.bash_profile
    mkdir -p /home/runner/workspace/src/github.com/$OWNER
    cd $GOPATH/src/github.com/$OWNER
    cd /home/runner/workspace/src/github.com/$OWNER
    ln -s /home/runner/$SEMAPHORE_PROJECT_NAME /home/runner/workspace/src/github.com/$OWNER/
    cd /home/runner/workspace/src/github.com/$OWNER/$SEMAPHORE_PROJECT_NAME
  3. rastasheep created this gist Dec 15, 2014.
    14 changes: 14 additions & 0 deletions setup.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    VERSION=$1
    OWNER=$2
    wget "https://storage.googleapis.com/golang/go$VERSION.linux-amd64.tar.gz"
    sudo tar -C "/usr/local -xzf go$VERSION.linux-amd64.tar.gz"
    sudo ln -s /usr/local/go/bin/go /usr/local/bin/
    sudo apt-get install -y mercurial
    echo "export PATH=$PATH:/usr/local/go/bin" >> ~/.bash_profile
    mkdir -p /home/runner/workspace/src /home/runner/workspace/bin /home/runner/workspace/pkg
    echo "export GOPATH=/home/runner/workspace" >> /home/runner/.bash_profile
    echo "export PATH=$PATH:/home/runner/workspace/bin" >> /home/runner/.bash_profile
    mkdir -p /home/runner/workspace/src/github.com/$OWNER
    cd $GOPATH/src/github.com/$OWNER
    ln -s /home/runner/$SEMAPHORE_PROJECT_NAME /home/runner/workspace/src/github.com/$OWNER/
    cd /home/runner/workspace/src/github.com/$OWNER/$SEMAPHORE_PROJECT_NAME