-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwercker.yml
56 lines (50 loc) · 1.35 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
box: golang
build:
steps:
- setup-go-workspace:
package-dir: github.com/yieldr/navitaire-ods
- script:
name: make build
code: |
for os in linux darwin windows; do
make build OS=$os ARCH=amd64
done
- script:
name: make test
code: |
make test
- script:
name: make vet
code: |
make vet
- script:
name: copy binary
code: |
cp bin/* "$WERCKER_OUTPUT_DIR/"
release:
# Uses the git tag when building the binaries. It's important to tag a release
# before pushing to the remote. Run the following to ensure the tag is present
# before the build step is run.
#
# git push origin --tags
#
steps:
- script:
name: get version
code: |
export VERSION=$(./navitaire-ods-linux-amd64 version --short)
- wercker/[email protected]:
token: $GITHUB_TOKEN
tag: $VERSION
- wercker/[email protected]:
token: $GITHUB_TOKEN
file: navitaire-ods-linux-amd64
content-type: application/octet-stream
- wercker/[email protected]:
token: $GITHUB_TOKEN
file: navitaire-ods-darwin-amd64
content-type: application/octet-stream
- wercker/[email protected]:
token: $GITHUB_TOKEN
file: navitaire-ods-windows-amd64.exe
content-type: application/octet-stream