@@ -11,7 +11,7 @@ set -o errexit # Exit the script with error if any of the commands fail
11
11
# Supported values: "server", "replica_set", "sharded_cluster"
12
12
# COMPRESSOR Set to enable compression. Values are "snappy" and "zlib" (default is no compression)
13
13
# JDK Set the version of java to be used. Java versions can be set from the java toolchain /opt/java
14
- # "jdk5", "jdk6", "jdk7", "jdk8"
14
+ # "jdk5", "jdk6", "jdk7", "jdk8", "jdk9"
15
15
16
16
AUTH=${AUTH:- noauth}
17
17
SSL=${SSL:- nossl}
28
28
export ASYNC_TYPE=" -Dorg.mongodb.async.type=nio2"
29
29
fi
30
30
31
+ # We always compile with the latest version of java
32
+ export JAVA_HOME=" /opt/java/jdk9"
33
+
34
+
31
35
# ###########################################
32
36
# Functions #
33
37
# ###########################################
@@ -40,7 +44,7 @@ provision_ssl () {
40
44
openssl pkcs12 -CAfile ${DRIVERS_TOOLS} /.evergreen/x509gen/ca.pem -export -in ${DRIVERS_TOOLS} /.evergreen/x509gen/client.pem -out client.pkc -password pass:bithere
41
45
fi
42
46
if [ ! -f mongo-truststore ]; then
43
- echo " y " | ${JAVA_HOME} /bin/keytool -importcert -trustcacerts -file ${DRIVERS_TOOLS} /.evergreen/x509gen/ca.pem -keystore mongo-truststore -storepass hithere
47
+ ${JAVA_HOME} /bin/keytool -importcert -trustcacerts -file ${DRIVERS_TOOLS} /.evergreen/x509gen/ca.pem -keystore mongo-truststore -storepass hithere -storetype JKS -noprompt
44
48
fi
45
49
46
50
# We add extra gradle arguments for SSL
@@ -82,9 +86,6 @@ if [ "$SSL" != "nossl" ]; then
82
86
fi
83
87
echo " Running $AUTH tests over $SSL for $TOPOLOGY and connecting to $MONGODB_URI "
84
88
85
- # We always compile with the latest version of java
86
- export JAVA_HOME=" /opt/java/jdk8"
87
-
88
89
echo " Running tests with ${JDK} "
89
90
./gradlew -version
90
91
./gradlew -PjdkHome=/opt/java/${JDK} -Dorg.mongodb.test.uri=${MONGODB_URI} ${GRADLE_EXTRA_VARS} ${ASYNC_TYPE} --stacktrace --info test
0 commit comments