File tree 2 files changed +20
-1
lines changed
2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change 7
7
- " stable"
8
8
- tip
9
9
10
+ env :
11
+ - GO111MODULE : " on"
12
+
10
13
matrix :
11
14
allow_failures :
12
15
- go : tip
13
16
14
17
script :
15
- - if [ "${TRAVIS_GO_VERSION}" = "stable" ]; then make golangci-lint
18
+ - if [ "${TRAVIS_GO_VERSION}" = "stable" ]; then make check-mod; fi
19
+ - if [ "${TRAVIS_GO_VERSION}" = "stable" ]; then make golangci-lint; fi
16
20
- if [ "${TRAVIS_GO_VERSION}" = "stable" ]; then echo running check scripts; make check; fi
17
21
- make build
18
22
- make TEST_FLAGS="-v" test
Original file line number Diff line number Diff line change
1
+ GO111MODULE ?= on
1
2
LINTER_BIN ?= golangci-lint
2
3
4
+ export GO111MODULE
5
+
3
6
.PHONY :
4
7
build : bin/go-md2man
5
8
@@ -31,3 +34,15 @@ $(LINTER_BIN):
31
34
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(shell go env GOPATH) /bin v1.15.0; \
32
35
fi
33
36
37
+ .PHONY : mod
38
+ mod :
39
+ @go mod tidy
40
+
41
+ .PHONY : check-mod
42
+ check-mod : # verifies that module changes for go.mod and go.sum are checked in
43
+ @hack/ci/check_mods.sh
44
+
45
+ .PHONY : vendor
46
+ vendor : mod
47
+ @go mod vendor -v
48
+
You can’t perform that action at this time.
0 commit comments