Created
November 14, 2016 21:52
-
-
Save FelicianoTech/b132b303d53a6891f0404de1f08ebd83 to your computer and use it in GitHub Desktop.
An example of how to use Go versions newer than v1.6.2 on CircleCI.
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
machine: | |
environment: | |
GODIST: "go1.7.3.linux-amd64.tar.gz" | |
post: | |
- mkdir -p downloads | |
- test -e download/$GODIST || curl -o download/$GODIST https://storage.googleapis.com/golang/$GODIST | |
- sudo rm -rf /usr/local/go | |
- sudo tar -C /usr/local -xzf download/$GODIST |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is a typo in the script, the mkdir command on line #5 should be
mkdir -p download