-
Notifications
You must be signed in to change notification settings - Fork 3.9k
ARROW-5466: [Java][CI] Dockerize Java CI, run all JDK builds in single Travis entry #4761
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,10 +25,23 @@ mkdir -p /build/java | |
|
|
||
| arrow_src=/build/java/arrow | ||
|
|
||
| # Remove any pre-existing artifacts | ||
| rm -rf $arrow_src | ||
|
|
||
| pushd /arrow | ||
| rsync -a header java format integration $arrow_src | ||
| rsync -a header java format integration $arrow_src | ||
|
||
| popd | ||
|
|
||
| JAVA_ARGS= | ||
| if [ "$ARROW_JAVA_RUN_TESTS" != "1" ]; then | ||
| JAVA_ARGS=-DskipTests | ||
| fi | ||
|
|
||
| pushd $arrow_src/java | ||
| mvn -B -DskipTests -Drat.skip=true install | ||
| mvn -B $JAVA_ARGS -Drat.skip=true install | ||
|
|
||
| if [ "$ARROW_JAVADOC" == "1" ]; then | ||
| export MAVEN_OPTS="$MAVEN_OPTS -Dorg.slf4j.simpleLogger.defaultLogLevel=warn" | ||
| mvn -B site | ||
| fi | ||
| popd | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -292,6 +292,18 @@ services: | |
| - .:/arrow:ro # ensures that docker won't contaminate the host directory | ||
| - maven-cache:/root/.m2:delegated | ||
|
|
||
| java-all-jdks: | ||
| # Usage: | ||
| # docker-compose build java-all-jdks | ||
| # docker-compose run java-all-jdks | ||
| image: ursalab/arrow-ci-java-all-jdks:latest | ||
|
||
| build: | ||
| context: . | ||
| dockerfile: java/Dockerfile.all-jdks | ||
| volumes: | ||
| - .:/arrow:ro # ensures that docker won't contaminate the host directory | ||
| - maven-cache:/root/.m2:delegated | ||
|
|
||
| js: | ||
| image: arrow:js | ||
| build: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| # Licensed to the Apache Software Foundation (ASF) under one | ||
| # or more contributor license agreements. See the NOTICE file | ||
| # distributed with this work for additional information | ||
| # regarding copyright ownership. The ASF licenses this file | ||
| # to you under the Apache License, Version 2.0 (the | ||
| # "License"); you may not use this file except in compliance | ||
| # with the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, | ||
| # software distributed under the License is distributed on an | ||
| # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| # KIND, either express or implied. See the License for the | ||
| # specific language governing permissions and limitations | ||
| # under the License. | ||
|
|
||
| FROM ubuntu:18.04 | ||
|
|
||
| # install build essentials | ||
| RUN export DEBIAN_FRONTEND=noninteractive && \ | ||
| apt-get update -y -q && \ | ||
| apt-get install -y -q --no-install-recommends \ | ||
| wget \ | ||
| software-properties-common \ | ||
| ca-certificates \ | ||
| maven \ | ||
| rsync \ | ||
| tzdata \ | ||
| openjdk-8-jdk \ | ||
| openjdk-11-jdk && \ | ||
| apt-get clean && rm -rf /var/lib/apt/lists/* | ||
|
|
||
| # Test all supported JDKs | ||
| CMD ["arrow/ci/docker_java_test_all.sh"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should language be Java?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one doesn't matter b/c it's Java