Created
March 28, 2018 14:09
-
-
Save DCRichards/af860cfccc07200acad0ea9680118ddb to your computer and use it in GitHub Desktop.
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
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