Skip to content

Instantly share code, notes, and snippets.

@wunki
Created February 5, 2015 14:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wunki/e3524d70539331f66982 to your computer and use it in GitHub Desktop.
Save wunki/e3524d70539331f66982 to your computer and use it in GitHub Desktop.
Build and deployment steps for Wercker.
box: wercker/golang
build:
steps:
- setup-go-workspace
- script:
name: get dependencies
code: |
cd $WERCKER_SOURCE_DIR
go get -t ./...
- script:
name: build
code: go build -v
- script:
name: test
code: go test ./... -v
- script:
name: tar
code: |
tar -czf $WERCKER_OUTPUT_DIR/$WERCKER_GIT_REPOSITORY-$(git rev-parse --short=7 HEAD).tar.gz -C $(dirname $WERCKER_SOURCE_DIR) .
after-steps:
- hipchat-notify:
token: <token>
room-id: <room_id>
from-name: wercker
deploy:
steps:
- s3sync:
key-id: $AWS_ACCESS_KEY_ID
key-secret: $AWS_SECRET_ACCESS_KEYS
bucket-url: $AWS_BUCKET_URL
delete-removed: false
opts: --acl-private
after-steps:
- hipchat-notify:
token: <token>
room-id: <room_id>
from-name: wercker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment