forked from etcinit/sauron
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwercker.yml
More file actions
79 lines (74 loc) · 2.08 KB
/
Copy pathwercker.yml
File metadata and controls
79 lines (74 loc) · 2.08 KB
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
box: etcinit/golang-goxc
# Build definition
build:
# The steps that will be executed on build
steps:
# Sets the go workspace and places you package
# at the right place in the workspace tree
- setup-go-workspace
# Gets the dependencies
- script:
name: go get
code: |
cd $WERCKER_SOURCE_DIR
go version
go get -t ./...
# Build the project
- script:
name: go build
code: |
go build ./...
# Test the project
- script:
name: go test
code: |
go test ./...
deploy:
steps:
# Sets the go workspace and places you package
# at the right place in the workspace tree
- setup-go-workspace
# Gets the dependencies
- script:
name: go get
code: |
cd $WERCKER_SOURCE_DIR
go version
go get -t ./...
# Build the project
- script:
name: compile dist package
code: |
go get -u -v github.com/laher/goxc
go build -o sauron
make release
- script:
name: get version from app
code: export APP_VERSION=$(./sauron -v)
- github-create-release:
token: $GITHUB_TOKEN
tag: $APP_VERSION
- github-upload-asset:
token: $GITHUB_TOKEN
file: snapshot/sauron_linux_386.tar.gz
filename: sauron-linux-386.tar.gz
- github-upload-asset:
token: $GITHUB_TOKEN
file: snapshot/sauron_linux_amd64.tar.gz
filename: sauron-linux-amd64.tar.gz
- github-upload-asset:
token: $GITHUB_TOKEN
file: snapshot/sauron_darwin_386.zip
filename: sauron-macosx-386.zip
- github-upload-asset:
token: $GITHUB_TOKEN
file: snapshot/sauron_darwin_amd64.zip
filename: sauron-macosx-amd64.zip
- github-upload-asset:
token: $GITHUB_TOKEN
file: snapshot/sauron_windows_386.zip
filename: sauron-windows-386.zip
- github-upload-asset:
token: $GITHUB_TOKEN
file: snapshot/sauron_windows_amd64.zip
filename: sauron-windows-amd64.zip