forked from dz0ny/gobu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwercker.yml
53 lines (46 loc) · 1.08 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
# use the official google golang container
box: google/golang
build:
# The steps that will be executed on build
steps:
- script:
name: setup env
code: |
apt-get update -yq
apt-get install mercurial -yq --force-yes
export GOROOT=/usr/local/go
export GOPATH=$(pwd)
export GO15VENDOREXPERIMENT=1
go env
# Build the project
- script:
name: Prepare
code: |
make setup
# Test the project
- script:
name: Test
code: |
make lint
make build
deploy:
steps:
- script:
name: setup env
code: |
apt-get update -yq
apt-get install mercurial -yq --force-yes
export GOROOT=/usr/local/go
export GOPATH=$(pwd)
export GO15VENDOREXPERIMENT=1
go env
# Gets the dependencies
- script:
name: Compile
code: |
make setup
make build
- script:
name: Deploy to GitHub
code: |
make upload