-
Notifications
You must be signed in to change notification settings - Fork 4
/
wercker.yml
56 lines (48 loc) · 1.26 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:
# Sets the go workspace and places you package
# at the right place in the workspace tree
- setup-go-workspace:
package-dir: github.com/ThoughtWorksStudios/bobcat
# get dependencies for project
- script:
name: build
code: |
make ci
# move binary in place for artifact packaging
- script:
name: move executable
code: |
cp bobcat-* $WERCKER_REPORT_ARTIFACTS_DIR
performance:
steps:
- setup-go-workspace:
package-dir: github.com/ThoughtWorksStudios/bobcat
- script:
name: build
code: |
make clean depend prepare performance
deploy:
steps:
- setup-go-workspace:
package-dir: github.com/ThoughtWorksStudios/bobcat
- install-packages:
packages: file
- script:
name: package
code: |
make release
- script:
name: export version
code: |
export VERSION=`./bobcat-linux --version`
- github-create-release:
token: $GITHUB_TOKEN
repo: bobcat
tag: $VERSION
title: Bobcat $VERSION
- github-upload-asset:
token: $GITHUB_TOKEN
repo: bobcat
file: bobcat.tar.gz