forked from savsgio/atreugo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
41 lines (33 loc) · 807 Bytes
/
.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
language: go
os:
- linux
- osx
- windows
go:
- 1.14.x
- 1.13.x
- 1.12.x
- 1.11.x
- tip
before_script:
- go get -u -v github.com/mattn/goveralls
- go get -t -v ./...
script:
- go test -v -cover -race ./... -coverprofile=.coverprofile
# send coverage
- $HOME/gopath/bin/goveralls -coverprofile=.coverprofile -service=travis-ci
jobs:
allow_failures:
- go: tip
include:
- stage: lint
script:
- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.27.0
- golangci-lint run
- stage: cross compilation
script:
- GOOS=linux go build
- GOOS=darwin go build
- GOOS=freebsd go build
- GOOS=windows go build
- GOARCH=386 go build