You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by nk...@apache.org on 2019/04/23 03:59:57 UTC

[pulsar-client-node] 18/20: Add file which defines pulsar version

This is an automated email from the ASF dual-hosted git repository.

nkurihar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar-client-node.git

commit ed17fee49e4665f6009ca199be5bde2c3df8e866
Author: hrsakai <hs...@yahoo-corp.jp>
AuthorDate: Tue Apr 23 12:09:29 2019 +0900

    Add file which defines pulsar version
---
 pulsar-test-service-start.sh | 2 +-
 pulsar-version.txt           | 1 +
 run-unit-tests.sh            | 5 ++++-
 3 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/pulsar-test-service-start.sh b/pulsar-test-service-start.sh
index af9ad03..78e715e 100755
--- a/pulsar-test-service-start.sh
+++ b/pulsar-test-service-start.sh
@@ -23,7 +23,7 @@ set -e
 ROOT_DIR=$(git rev-parse --show-toplevel)
 cd $ROOT_DIR
 
-VERSION="${VERSION:-2.3.1}"
+VERSION="${VERSION:-`cat ./pulsar-version.txt`}"
 PULSAR_DIR="${PULSAR_DIR:-/tmp/pulsar-test-dist}"
 PKG=apache-pulsar-${VERSION}-bin.tar.gz
 
diff --git a/pulsar-version.txt b/pulsar-version.txt
new file mode 100755
index 0000000..2bf1c1c
--- /dev/null
+++ b/pulsar-version.txt
@@ -0,0 +1 @@
+2.3.1
diff --git a/run-unit-tests.sh b/run-unit-tests.sh
index c8358a8..1acce0a 100755
--- a/run-unit-tests.sh
+++ b/run-unit-tests.sh
@@ -20,8 +20,11 @@
 
 set -e
 
+ROOT_DIR=$(git rev-parse --show-toplevel)
+cd $ROOT_DIR
+
 # install pulsar cpp client pkg
-VERSION="${VERSION:-2.3.1}"
+VERSION="${VERSION:-`cat ./pulsar-version.txt`}"
 PULSAR_PKG_DIR="/tmp/pulsar-test-pkg"
 rm -rf $PULSAR_PKG_DIR
 for pkg in apache-pulsar-client-dev.deb apache-pulsar-client.deb;do