Created
February 5, 2015 14:55
-
-
Save wunki/e3524d70539331f66982 to your computer and use it in GitHub Desktop.
Build and deployment steps for Wercker.
This file contains hidden or 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
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