Skip to content
This repository has been archived by the owner on Feb 27, 2020. It is now read-only.

Commit

Permalink
Skip linters on travis, they do not seems to run fast enough
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasfj committed Mar 22, 2017
1 parent 179b700 commit 4290d02
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ install:

script:
# note - below, || is used rather than && to ensure we only get zero exit code if all is ok
- "test $GOOS != windows || make build"
- "test $GOOS == windows || (go get github.com/axw/gocov/gocov github.com/mattn/goveralls golang.org/x/tools/cmd/cover github.com/pierrre/gotestcover && make rebuild check && ${GOPATH}/bin/gotestcover -v -coverprofile=coverage.report $(go list ./... | grep -v /vendor/) && go tool cover -func=coverage.report)"
- "test $GOOS != windows || make rebuild-nolint"
- "test $GOOS == windows || (go get github.com/axw/gocov/gocov github.com/mattn/goveralls golang.org/x/tools/cmd/cover github.com/pierrre/gotestcover && make rebuild-nolint check && ${GOPATH}/bin/gotestcover -v -coverprofile=coverage.report $(go list ./... | grep -v /vendor/) && go tool cover -func=coverage.report)"

after_script:
- "if test $GOOS != windows; then $HOME/gopath/bin/goveralls -coverprofile=coverage.report -service=travis-ci; fi"
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ uname := $(shell uname)
is_darwin := $(filter Darwin,$(uname))
CGO_ENABLE := $(if $(is_darwin),1,0)

.PHONY: all prechecks build rebuild check test dev-test tc-worker-env tc-worker
.PHONY: all prechecks build rebuild rebuild-nolint check test dev-test tc-worker-env tc-worker

all: rebuild

Expand All @@ -29,6 +29,7 @@ build:
CGO_ENABLED=$(CGO_ENABLE) go install

rebuild: prechecks build test lint
rebuild-nolint: prechecks build test

check: test
# tests should fail if go fmt results in uncommitted code
Expand Down

0 comments on commit 4290d02

Please sign in to comment.