mirror of
https://github.com/prometheus-community/postgres_exporter
synced 2025-05-06 09:58:01 +00:00
Update .travis.yml.
This commit is contained in:
parent
8877b69804
commit
801793e185
@ -17,7 +17,7 @@ script:
|
|||||||
- make all
|
- make all
|
||||||
- make docker
|
- make docker
|
||||||
- make test-integration
|
- make test-integration
|
||||||
- ./concatenate_coverage cover.out cover.test.out cover.integration.out
|
- make cover.out
|
||||||
- $HOME/gopath/bin/goveralls -coverprofile=cover.out -service=travis-ci
|
- $HOME/gopath/bin/goveralls -coverprofile=cover.out -service=travis-ci
|
||||||
after_success:
|
after_success:
|
||||||
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
|
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
|
||||||
|
5
Makefile
5
Makefile
@ -48,11 +48,14 @@ test: tools
|
|||||||
for pkg in $(GO_PKGS) ; do \
|
for pkg in $(GO_PKGS) ; do \
|
||||||
go test -v -covermode count -coverprofile=$(COVERDIR)/$$(echo $$pkg | tr '/' '-').out $$pkg ; \
|
go test -v -covermode count -coverprofile=$(COVERDIR)/$$(echo $$pkg | tr '/' '-').out $$pkg ; \
|
||||||
done
|
done
|
||||||
gocovmerge $(shell find $(COVERDIR) -name '*.out') > cover.out
|
gocovmerge $(shell find $(COVERDIR) -name '*.out') > cover.test.out
|
||||||
|
|
||||||
test-integration: postgres_exporter postgres_exporter_integration_test
|
test-integration: postgres_exporter postgres_exporter_integration_test
|
||||||
tests/test-smoke "$(shell pwd)/postgres_exporter" "$(shell pwd)/postgres_exporter_integration_test_script $(shell pwd)/postgres_exporter_integration_test $(shell pwd)/cover.integration.out"
|
tests/test-smoke "$(shell pwd)/postgres_exporter" "$(shell pwd)/postgres_exporter_integration_test_script $(shell pwd)/postgres_exporter_integration_test $(shell pwd)/cover.integration.out"
|
||||||
|
|
||||||
|
cover.out: tools
|
||||||
|
gocovmerge cover.*.out > cover.out
|
||||||
|
|
||||||
# Do a self-contained docker build - we pull the official upstream container
|
# Do a self-contained docker build - we pull the official upstream container
|
||||||
# and do a self-contained build.
|
# and do a self-contained build.
|
||||||
docker-build:
|
docker-build:
|
||||||
|
Loading…
Reference in New Issue
Block a user