Skip to content

Commit 77979a1

Browse files
committed
Do not test everything 2 times
1 parent 521345c commit 77979a1

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

.travis.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,8 @@ before_install:
2727
- go get golang.org/x/tools/cmd/cover
2828

2929

30-
install:
31-
- make travis_install
32-
33-
3430
script:
3531
- make build
3632
- ./scw version
37-
- make travis_run
3833
- make cover
3934
- goveralls -service=travis-ci -v -coverprofile=profile.out

Makefile

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ $(IREF_LIST): %_iref: pkg/scwversion/version.go
7777
$(TEST_LIST): %_test:
7878
$(GOTEST) ./$*
7979
$(COVER_LIST): %_cover:
80-
$(GOTEST) -coverprofile=file-profile.out ./$*
80+
$(GOTEST) -covermode=count -v -coverprofile=file-profile.out ./$*
8181
if [ -f file-profile.out ]; then cat file-profile.out | grep -v "mode: set" >> profile.out || true; rm -f file-profile.out; fi
8282
$(FMT_LIST): %_fmt:
8383
$(GOFMT) ./$*
@@ -130,15 +130,6 @@ packages:
130130
#publish_packages:
131131
# docker run -v $(PWD)/dist moul/dput ppa:moul/scw dist/scw_$(FPM_VERSION)_arm.changes
132132

133-
134-
travis_install:
135-
go get golang.org/x/tools/cmd/cover
136-
137-
138-
travis_run: build
139-
go test -v -covermode=count $(foreach int, $(SRC) $(PACKAGES), ./$(int))
140-
141-
142133
golint:
143134
@go get github.com/golang/lint/golint
144135
@for dir in */; do golint $$dir; done

0 commit comments

Comments
 (0)