Skip to content

Instantly share code, notes, and snippets.

@natefinch
Created February 22, 2017 03:58
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save natefinch/398ef348baaaf0d79812a7febc0cc094 to your computer and use it in GitHub Desktop.
Save natefinch/398ef348baaaf0d79812a7febc0cc094 to your computer and use it in GitHub Desktop.
Minimal .travis.yml for go projects that use glide with private repos
language: go
go:
- 1.8
before_install:
- git config --global url."git@github.com:".insteadOf "https://github.com/"
- wget "https://github.com/Masterminds/glide/releases/download/v0.12.3/glide-v0.12.3-linux-amd64.tar.gz"
- mkdir -p $HOME/bin
- tar -vxz -C $HOME/bin --strip=1 -f glide-v0.12.3-linux-amd64.tar.gz
- export PATH="$HOME/bin:$PATH"
install: glide install
script: go test $(glide novendor)
@natefinch
Copy link
Author

If you don't use private repos you can drop line 7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment