Add "go mod verify" to build scripts

This commit is contained in:
Bjørn Erik Pedersen 2020-02-15 21:00:15 +01:00
parent 75c3787fc2
commit 56d0b65887
2 changed files with 3 additions and 1 deletions

View file

@ -17,6 +17,7 @@ jobs:
cd hugo cd hugo
go mod download go mod download
sleep 5 sleep 5
go mod verify
go test -p 1 ./... go test -p 1 ./...
- persist_to_workspace: - persist_to_workspace:
root: . root: .

View file

@ -64,7 +64,8 @@ install:
- go get github.com/magefile/mage - go get github.com/magefile/mage
script: script:
- go mod download || true - go mod download
- go mod verify
- mage -v test - mage -v test
- if [ "$TRAVIS_ARCH" = "amd64" ]; then - if [ "$TRAVIS_ARCH" = "amd64" ]; then
mage -v check; mage -v check;