forked from trezor/trezord-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
61 lines (59 loc) · 1.46 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
sudo: false
dist: bionic
language: go
matrix:
include:
- env: TEST=build-local
go: 1.12
script:
- go build .
- go test -v ./...
- env: TEST=build-local
go: 1.13
script:
- go build .
- go test -v ./...
- env: TEST=build-local
go: 1.14
script:
- go build .
- go test -v ./...
- env: TEST=build-xgo-linux
go: 1.12
sudo: true
script:
- docker pull karalabe/xgo-latest
- go get github.com/karalabe/xgo
- cd release/linux
- make all
- env: TEST=build-xgo-windows
go: 1.12
sudo: true
script:
- docker pull karalabe/xgo-latest
- go get github.com/karalabe/xgo
- cd release/windows
- make all
- env: TEST=build-xgo-macos
go: 1.12
sudo: true
script:
- docker pull karalabe/xgo-latest
- go get github.com/karalabe/xgo
- cd release/macos
- make all
- env: TEST=golangci
go: 1.12
script:
- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.32.0
- golangci-lint run
- env: TEST=version-check
script:
- diff -u VERSION <(grep "var 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