Skip to content

Commit

Permalink
reset go.mod/go.sum before deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
atomicptr committed Mar 30, 2020
1 parent 7f549d3 commit d438a72
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ script:
- go test -v -covermode=count -coverprofile=coverage.out ./...
- "$(go env GOPATH)/bin/golangci-lint run"
- "$(go env GOPATH)/bin/goveralls -coverprofile=coverage.out -service=travis-ci"
- git --no-pager diff
after_success:
# reset go.mod/go.sum back to their initial state (after being modified by go get -u)
- git checkout -- go.mod go.sum
# login to snapcraft
- test -n "$TRAVIS_TAG" && snapcraft login --with snap.login
deploy:
Expand Down

0 comments on commit d438a72

Please sign in to comment.