Skip to content

Commit

Permalink
Skip some tests on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mtibben committed Oct 12, 2018
1 parent 3b40044 commit 2951ec9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,14 @@ os:
- windows

before_install:
# install gcc to work around https://github.com/golang/go/issues/28065
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then choco install mingw && which gcc ; fi
- go get -u github.com/kardianos/govendor

script:
- govendor status
- diff -u <(echo -n) <(gofmt -d $(git ls-files '*.go' | grep -v ^vendor/))
# govendor linting: skip on windows to work around https://github.com/kardianos/govendor/issues/233
- if [[ "$TRAVIS_OS_NAME" != "windows" ]]; then govendor status ; fi
# gofmt linting: skip on windows to work around line ending differences
- if [[ "$TRAVIS_OS_NAME" != "windows" ]]; then diff -u <(echo -n) <(gofmt -d $(git ls-files '*.go' | grep -v ^vendor/)) ; fi
- go vet ./...
- go test -race ./...

0 comments on commit 2951ec9

Please sign in to comment.