diff options
author | Duco van Amstel <duco.vanamstel@gmail.com> | 2019-03-12 21:47:18 +0000 |
---|---|---|
committer | Wim <wim@42.be> | 2019-03-12 22:47:18 +0100 |
commit | eabf2a45820eef497b2a2f19c27d801a29bfaeea (patch) | |
tree | 027257e7fbbf21e7f27c470f3d8a274760353de1 /.travis.yml | |
parent | 325d62b41c03f0530513a4f404cc8d7349b6885b (diff) | |
download | matterbridge-msglm-eabf2a45820eef497b2a2f19c27d801a29bfaeea.tar.gz matterbridge-msglm-eabf2a45820eef497b2a2f19c27d801a29bfaeea.tar.bz2 matterbridge-msglm-eabf2a45820eef497b2a2f19c27d801a29bfaeea.zip |
Check module files in CI run (#761)
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml index 19942525..ae67b119 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,6 +12,7 @@ git: env: global: - GOOS=linux GOARCH=amd64 + - GO111MODULE=on - GOLANGCI_VERSION="v1.14.0" matrix: @@ -36,10 +37,17 @@ before_script: - ./cc-test-reporter before-build script: + # Ensure that the module files are being kept correctly and that vendored dependencies are up-to-date. + - go mod tidy + - go mod vendor + - git diff --exit-code --quiet || (echo "Please run 'go mod tidy' to clean up the 'go.mod' and 'go.sum' files."; false) + # Run the linter. - golangci-lint run + # Run all the tests with the race detector and generate coverage. - go test -v -race -coverprofile c.out ./... + # Run the build script to generate the necessary binaries and images. - /bin/bash ci/bintray.sh |