forked from trezor/trezord-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
69 lines (67 loc) · 1.64 KB
/
.travis.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
57
58
59
60
61
62
63
64
65
66
67
68
69
sudo: false
dist: trusty
language: go
matrix:
include:
- env: TEST=build-local
go: 1.7
script:
- go build .
- go test -v ./...
- env: TEST=build-local
go: 1.8
script:
- go build .
- go test -v ./...
- env: TEST=build-local
go: 1.9
script:
- go build .
- go test -v ./...
- env: TEST=build-local
go: "1.10"
script:
- go build .
- go test -v ./...
- env: TEST=build-xgo-linux
sudo: true
script:
- docker pull karalabe/xgo-latest
- go get github.com/karalabe/xgo
- cd release/linux
- make all
- env: TEST=build-xgo-windows
sudo: true
script:
- docker pull karalabe/xgo-latest
- go get github.com/karalabe/xgo
- cd release/windows
- make all
- env: TEST=build-xgo-macos
sudo: true
script:
- docker pull karalabe/xgo-latest
- go get github.com/karalabe/xgo
- cd release/macos
- make all
- env: TEST=go-vet
script:
- go vet ./...
- env: TEST=go-fmt
script:
- gofmt -d *.go ./server ./server/status ./server/api ./usb ./wire ./core ./memorywriter
- env: TEST=metalinter
script:
- go get -u github.com/alecthomas/gometalinter
- gometalinter --install
- gometalinter
- env: TEST=version-check
script:
- diff -u VERSION <(grep "const version" trezord.go | cut -f 2 -d '"')
notifications:
webhooks:
urls:
- http://ci-bot.satoshilabs.com:5000/travis
on_success: always
on_failure: always
on_start: always