summaryrefslogtreecommitdiffstats
path: root/scripts/ci/verify.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/ci/verify.sh')
-rwxr-xr-xscripts/ci/verify.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/ci/verify.sh b/scripts/ci/verify.sh
index 78cdd6e..e00e005 100755
--- a/scripts/ci/verify.sh
+++ b/scripts/ci/verify.sh
@@ -19,6 +19,13 @@ NSH_PLUGIN_DIR=$(dirname $0)/../../nsh-plugin/
NSH_PLUGIN_DIR=$(readlink -f $NSH_PLUGIN_DIR)
echo "NSH_PLUGIN_DIR: ${NSH_PLUGIN_DIR}"
export NSH_INSTALL_PREFIX=${NSH_PLUGIN_DIR}/_install
+export SUDOCMD=""
+if test -f /usr/bin/lsb_release && test `lsb_release -si` == "Ubuntu" && test `lsb_release -sr` == "14.04" && test -d /usr/lib/jvm/java-8-openjdk-amd64/ ; then
+ export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/
+ export JAVAC=${JAVA_HOME}/bin/javac
+ export PATH=${JAVA_HOME}/bin/:${PATH}
+ break
+fi
${NSH_PLUGIN_DIR}/build.sh