-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathwercker.yml
50 lines (48 loc) · 1.36 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
box: golang
dev:
steps:
- script:
name: build libstatgrab
code: |
curl -o libstatgrab-0.91.tar.gz http://www.mirrorservice.org/pub/i-scream/libstatgrab/libstatgrab-0.91.tar.gz
tar zxf libstatgrab-0.91.tar.gz
cd libstatgrab-0.91
./configure --prefix=/usr
sudo make install
cd ..
rm -rf libstatgrab-0.91 libstatgrab-0.91.tar.gz
- internal/watch:
code: |
go build ./...
reload: true
# Build definition
build:
# The steps that will be executed on build
steps:
- script:
name: build libstatgrab
code: |
curl -o libstatgrab-0.91.tar.gz http://www.mirrorservice.org/pub/i-scream/libstatgrab/libstatgrab-0.91.tar.gz
tar zxf libstatgrab-0.91.tar.gz
cd libstatgrab-0.91
./configure --prefix=/usr
sudo make install
cd ..
rm -rf libstatgrab-0.91 libstatgrab-0.91.tar.gz
# golint step!
- script:
name: golint
code: |
go get -u github.com/golang/lint/golint
$GOPATH/bin/golint .
# Build the project
- script:
name: go build
code: |
go build ./...
# Test the project
- script:
name: go test
code: |
go get github.com/stretchr/testify/assert
go test -v ./...