Created
February 4, 2016 12:35
-
-
Save ashwanthkumar/08406dbf937bff264458 to your computer and use it in GitHub Desktop.
Build commands for GoLang project on SnapCI
This file contains hidden or 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
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