Skip to content

Instantly share code, notes, and snippets.

@DCRichards
Created March 28, 2018 14:09
Show Gist options
  • Save DCRichards/af860cfccc07200acad0ea9680118ddb to your computer and use it in GitHub Desktop.
Save DCRichards/af860cfccc07200acad0ea9680118ddb to your computer and use it in GitHub Desktop.
pipeline:
test:
image: golang:1.9-alpine
pull: true
commands:
- apk --update add git openssh
- go get -u github.com/golang/dep/cmd/dep
- cp -R ssh /root/.ssh
# We need this or we'll be warned about our private key security.
- chmod 0400 /root/.ssh/id_rsa
- eval "$(ssh-agent)"
- ssh-add /root/.ssh/id_rsa
- cp -R src/app /go/src
- cd /go/src/app
- dep status -old
- go test
when:
event: push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment