forked from etcinit/phabulous
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wercker.yml
62 lines (62 loc) · 1.63 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
box: golang
# Build definition
build:
# The steps that will be executed on build
steps:
# Gets the dependencies
- script:
name: go get
code: |
go version
go get -d -t ./...
# Build the project
- script:
name: go build
code: |
go build ./...
# Test the project
- script:
name: go test
code: |
go test ./...
deploy:
steps:
# Gets the dependencies
- script:
name: go get
code: |
go version
go get -d -t ./...
# Build the project
- script:
name: compile dist package
code: |
go get github.com/mitchellh/gox
gox --os="linux darwin" \
&& --output="build/{{.Dir}}_{{.OS}}_{{.Arch}}" ./cmd/phabulous
- script:
name: get version from app
code: export APP_VERSION=$(./phabulous -v)
- github-create-release:
token: $GITHUB_TOKEN
tag: $APP_VERSION
- github-upload-asset:
token: $GITHUB_TOKEN
file: build/phabulous_linux_arm
filename: phabulous-linux-arm
- github-upload-asset:
token: $GITHUB_TOKEN
file: build/phabulous_linux_386
filename: phabulous-linux-386
- github-upload-asset:
token: $GITHUB_TOKEN
file: build/phabulous_linux_amd64
filename: phabulous-linux-amd64
- github-upload-asset:
token: $GITHUB_TOKEN
file: build/phabulous_darwin_386
filename: phabulous-darwin-386
- github-upload-asset:
token: $GITHUB_TOKEN
file: build/phabulous_darwin_amd64
filename: phabulous-darwin-amd64