Skip to content

Instantly share code, notes, and snippets.

@ashwanthkumar
Created February 4, 2016 12:35
Show Gist options
  • Save ashwanthkumar/08406dbf937bff264458 to your computer and use it in GitHub Desktop.
Save ashwanthkumar/08406dbf937bff264458 to your computer and use it in GitHub Desktop.
Build commands for GoLang project on SnapCI
GITHUB_USERNAME="ashwanthkumar"
GITHUB_REPO="marathonctl"
# Install Golang as part of the build - takes about 30 secs
sudo yum install --assumeyes golang
# Setup GOPATH conventions
mkdir -p /var/snap-ci/src/github.com/${GITHUB_USERNAME}/
# Create symlinks according to go's directory structure
ln -s /var/snap-ci/repo /var/snap-ci/src/github.com/${GITHUB_USERNAME}/${GITHUB_REPO}
# Run your make commands to test and build your project
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment