Skip to content

Commit

Permalink
Test for all non-main packge and clean before each test
Browse files Browse the repository at this point in the history
  • Loading branch information
hwchiu committed Jun 2, 2018
1 parent 7da2c11 commit be57002
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ before_install:
- go get -u github.com/golang/protobuf/{proto,protoc-gen-go}

script:
- sudo -E env PATH=$PATH TEST_OVS=1 gotestcover -coverprofile=coverage.txt -covermode=atomic ./ovs ./docker
- sudo -E env PATH=$PATH TEST_OVS=1 gotestcover -coverprofile=coverage.txt -covermode=atomic ./...
after_success:
- bash <(curl -s https://codecov.io/bash)

Expand Down
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ clean:
-rm -f client/${BINARY}-*
-rm -f server/${BINARY}-*

test:
sudo -E env PATH=$$PATH TEST_OVS=1 go test -v ./ovs ./docker
test: pb
go clean -testcache
sudo -E env PATH=$$PATH TEST_OVS=1 go test -v ./...

.PHONY: server client test clean

0 comments on commit be57002

Please sign in to comment.