You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by mm...@apache.org on 2019/05/23 19:44:10 UTC
[pulsar-client-go] branch master updated: Run tests on all the
subdirectories (#10)
This is an automated email from the ASF dual-hosted git repository.
mmerli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar-client-go.git
The following commit(s) were added to refs/heads/master by this push:
new 12f444a Run tests on all the subdirectories (#10)
12f444a is described below
commit 12f444a68300f79cb14178584f474c1e6b3a8a97
Author: Matteo Merli <mm...@apache.org>
AuthorDate: Thu May 23 12:44:06 2019 -0700
Run tests on all the subdirectories (#10)
* Run tests on all the subdirectories
* Fixed dockerfile
---
Dockerfile | 7 ++++---
run-ci.sh | 2 +-
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/Dockerfile b/Dockerfile
index d7a3211..3ce4c1e 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -17,12 +17,13 @@
# under the License.
#
+FROM apachepulsar/pulsar:latest as pulsar
+
FROM golang:1.12 as go
-FROM apachepulsar/pulsar:latest
+RUN apt-get update && apt-get install -y openjdk-8-jre-headless
-COPY --from=go /usr/local/go /usr/local/go
-ENV PATH /root/go/bin:/usr/local/go/bin:$PATH
+COPY --from=pulsar /pulsar /pulsar
### Add test scripts
diff --git a/run-ci.sh b/run-ci.sh
index 1b863fe..b593da5 100755
--- a/run-ci.sh
+++ b/run-ci.sh
@@ -32,7 +32,7 @@ go build -o pulsar-perf ./perf
./pulsar-test-service-start.sh
# Run tests on the directories that contains any '*_test.go' file
-DIRS=`find ./pulsar -name '*_test.go' | xargs -n1 dirname | sort | uniq`
+DIRS=`find . -name '*_test.go' | xargs -n1 dirname | sort | uniq`
go test -coverprofile=/tmp/coverage ${DIRS}
go tool cover -html=/tmp/coverage -o coverage.html