Codebase list go-md2man-v2 / 7762f7e
[travis] check module deps Signed-off-by: Brian Goff <cpuguy83@gmail.com> Brian Goff 5 years ago
2 changed file(s) with 20 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
66 - "stable"
77 - tip
88
9 env:
10 - GO111MODULE: "on"
11
912 matrix:
1013 allow_failures:
1114 - go: tip
1215
1316 script:
14 - if [ "${TRAVIS_GO_VERSION}" = "stable" ]; then make golangci-lint
17 - if [ "${TRAVIS_GO_VERSION}" = "stable" ]; then make check-mod; fi
18 - if [ "${TRAVIS_GO_VERSION}" = "stable" ]; then make golangci-lint; fi
1519 - if [ "${TRAVIS_GO_VERSION}" = "stable" ]; then echo running check scripts; make check; fi
1620 - make build
1721 - make TEST_FLAGS="-v" test
0 GO111MODULE ?= on
01 LINTER_BIN ?= golangci-lint
2
3 export GO111MODULE
14
25 .PHONY:
36 build: bin/go-md2man
3033 curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(shell go env GOPATH)/bin v1.15.0; \
3134 fi
3235
36 .PHONY: mod
37 mod:
38 @go mod tidy
39
40 .PHONY: check-mod
41 check-mod: # verifies that module changes for go.mod and go.sum are checked in
42 @hack/ci/check_mods.sh
43
44 .PHONY: vendor
45 vendor: mod
46 @go mod vendor -v
47