Add "go mod verify" to build scripts
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sat, 15 Feb 2020 20:00:15 +0000 (21:00 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sat, 15 Feb 2020 23:15:58 +0000 (00:15 +0100)
.circleci/config.yml
.travis.yml

index cc3118229db402d9c2d7716ff851b6fe43b8cfe8..20f455dba55926fd20d8cba353d911d3fbd255ef 100644 (file)
@@ -17,6 +17,7 @@ jobs:
                 cd hugo
                 go mod download
                 sleep 5
+                go mod verify
                 go test -p 1 ./...
       - persist_to_workspace:
           root: .
index 17145972ccf7db9d92fab9cbcc4e5d70be328ac0..856ab44cfbc73ffa1432ad762b29e37d092f2415 100644 (file)
@@ -64,7 +64,8 @@ install:
   - go get github.com/magefile/mage
 
 script:
-  - go mod download || true
+  - go mod download
+  - go mod verify
   - mage -v test
   - if [ "$TRAVIS_ARCH" = "amd64" ]; then
         mage -v check;