-
Notifications
You must be signed in to change notification settings - Fork 3
/
wercker.yml
28 lines (27 loc) · 853 Bytes
/
wercker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
box: darron/go-wercker
build:
steps:
# Build the project
- script:
name: go build
code: |
make deps
make build
make test
after-steps:
- wantedly/pretty-slack-notify:
webhook_url: $SLACK_WEBHOOK_URL
deploy:
steps:
- script:
name: package build
code: |
cd build
sudo fpm-cook install-deps
sudo fpm-cook
PACKAGECLOUD=$(eval echo "\$PACKAGECLOUD_TOKEN") && echo -e "$PACKAGECLOUD" > ~/.packagecloud && chmod 600 ~/.packagecloud
DEB_FILE=$(find . -name '*.deb') && package_cloud push darron/goshe/ubuntu/trusty $DEB_FILE
DEB_FILE=$(find . -name '*.deb') && package_cloud push darron/goshe/ubuntu/precise $DEB_FILE
after-steps:
- wantedly/pretty-slack-notify:
webhook_url: $SLACK_WEBHOOK_URL