Skip to content

Commit ee64454

Browse files
committed
Expand test suite to use jdk8 and jdk9 for unit and integration tests
1 parent d3e532a commit ee64454

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99

1010
- API: add InfluxDB#createRetentionPolicy and InfluxDB#dropRetentionPolicy to be able to create and drop Retention Policies [PR #351](https://github.com/influxdata/influxdb-java/pull/351)
1111

12+
#### Improvements
13+
14+
- Build: all unit and integration test are now running with jdk8 and jdk9.
15+
1216
## v2.7 [2017-06-26]
1317

1418
#### Features

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,8 +249,8 @@ For version change history have a look at [ChangeLog](https://github.com/influxd
249249

250250
### Build Requirements
251251

252-
* Java 1.8+
253-
* Maven 3.0+
252+
* Java 1.8+ (tested with jdk8 and jdk9)
253+
* Maven 3.0+ (tested with maven 3.5.0)
254254
* Docker daemon running
255255

256256
Then you can build influxdb-java with all tests with:

compile-and-test.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ set -e
66

77
INFLUXDB_VERSIONS="1.3 1.2 1.1"
88

9+
JAVA_VERSIONS="3-jdk-8 3-jdk-9"
10+
11+
12+
for java_version in ${JAVA_VERSIONS}
13+
do
14+
echo "Run tests with maven:${java_version}"
915
for version in ${INFLUXDB_VERSIONS}
1016
do
1117
echo "Tesing againts influxdb ${version}"
@@ -26,7 +32,8 @@ do
2632
--workdir /usr/src/mymaven \
2733
--link=influxdb \
2834
--env INFLUXDB_IP=influxdb \
29-
maven:alpine mvn clean install
35+
maven:${java_version} mvn clean install
3036

3137
docker kill influxdb || true
3238
done
39+
done

0 commit comments

Comments
 (0)