-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
32 lines (25 loc) · 834 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
dist: bionic
language: go
go:
- "1.15.x"
- "1.16.x"
- tip
env:
- GO111MODULE=on GOLANGCILINT=$(curl -fsSLI -o /dev/null -w %{url_effective} https://github.com/golangci/golangci-lint/releases/latest | awk -F '/' '{print $8}')
go_import_path: github.com/ganeshmaharaj/lvm-snapshotter
before_install:
- sudo apt update
- sudo apt install lvm2 thin-provisioning-tools libseccomp2
matrix:
allow_failures:
- go: tip
install:
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin ${GOLANGCILINT}
script:
- go env
- go fmt
- go build -mod vendor
- go test ./...
- golangci-lint run -E gofmt -E unconvert ./...
- ./tests/test_snapshotter.sh
- sudo PATH=$PATH GOPATH=$GOPATH GO111MODULE=on bash -c 'go test ./... -v -test.root -parallel 8'