Skip to content

Commit

Permalink
feat : fix travis
Browse files Browse the repository at this point in the history
  • Loading branch information
AgwaB committed Jun 16, 2019
1 parent a0bdb1d commit f288a56
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions travis/run_on_non_pull_requests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ exit 1
fi

# run go test
go test -v -mod=vendor ./...
go test -mod=vendor ./...

if [ $? -ne 0 ]; then
echo "go test fail" >&2
exit 1
fi

# generate go test coverage file
go test -v -mod=vendor ./... -covermode=count -coverprofile=coverage.out
go test -mod=vendor ./... -covermode=count -coverprofile=coverage.out

if [ $? -ne 0 ]; then
echo "go test coverage fail" >&2
Expand Down
4 changes: 2 additions & 2 deletions travis/run_on_pull_requests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ exit 1
fi

# run go test
go test -v -mod=vendor ./...
go test -mod=vendor ./...

if [ $? -ne 0 ]; then
echo "go test fail" >&2
exit 1
fi

# go test with race condition option and check coverage
go test ./... -race -coverprofile cover.out -covermode=atomic
go test ./... -race -p 1 -coverprofile cover.out -covermode=atomic

if [ $? -ne 0 ]; then
echo "go test coverage fail" >&2
Expand Down

0 comments on commit f288a56

Please sign in to comment.