Skip to content

Commit

Permalink
Setup make test-coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
sapk committed Nov 26, 2018
1 parent c946c35 commit 8a64e4b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ script:
# - sudo cat /var/log/glusterfs/*
- ./docker-volume-gluster

after_success:
- bash <(curl -s https://codecov.io/bash) -f coverage.*
#after_success:
# - make test-coverage

before_deploy:
- make compress
Expand Down
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,12 @@ test-integration: dev-deps deps format
@echo -e "$(OK_COLOR)==> Running integration tests...$(NO_COLOR)"
go test -v -timeout 1h -race -coverprofile=coverage.inte.out -covermode=atomic -coverpkg ./gluster/driver ./gluster/integration

test-coverage: test
@echo -e "$(OK_COLOR)==> Uploading coverage ...$(NO_COLOR)"
curl -s https://codecov.io/bash | bash -s - -F unittests -f coverage.unit.out
curl -s https://codecov.io/bash | bash -s - -F integration -f coverage.inte.out
#Need CODECOV_TOKEN=:uuid

docs:
@echo -e "$(OK_COLOR)==> Serving docs at http://localhost:$(DOC_PORT).$(NO_COLOR)"
@godoc -http=:$(DOC_PORT)
Expand Down
2 changes: 1 addition & 1 deletion gluster/integration/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,6 @@ func TestIntegration(t *testing.T) {
if outDistributedContainer != out {
t.Errorf("Content inside gluster distributed volume in not the same : %s != %s", outDistributedContainer, out)
}
//TODO check that container is same as before
//TODO check persistence

}

0 comments on commit 8a64e4b

Please sign in to comment.