From 178d059111f9c417cf5cb123a37ade9826b6c2fb Mon Sep 17 00:00:00 2001 From: shahasad <43590019+shahasad@users.noreply.github.com> Date: Tue, 3 Dec 2019 14:21:51 -0800 Subject: [PATCH] Setup java ci (#2528) --- .../azure-pipelines/linux-ci-pipeline-with-java.yml | 9 +++++++++ .../github/linux/docker/scripts/install_ubuntu.sh | 6 ++++-- 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 tools/ci_build/github/azure-pipelines/linux-ci-pipeline-with-java.yml diff --git a/tools/ci_build/github/azure-pipelines/linux-ci-pipeline-with-java.yml b/tools/ci_build/github/azure-pipelines/linux-ci-pipeline-with-java.yml new file mode 100644 index 0000000000..20268361f0 --- /dev/null +++ b/tools/ci_build/github/azure-pipelines/linux-ci-pipeline-with-java.yml @@ -0,0 +1,9 @@ +jobs: +- template: templates/linux-ci.yml + parameters: + AgentPool : 'Linux-CPU' + JobName: 'Linux_CI_Dev' + BuildCommand: 'tools/ci_build/github/linux/run_dockerbuild.sh -o ubuntu16.04 -d cpu -r $(Build.BinariesDirectory) -x "--use_mklml --use_llvm --use_nuphar --use_mkldnn --use_tvm --use_automl --build_wheel --build_java --enable_language_interop_ops"' + DoNugetPack: 'false' + ArtifactName: 'drop-linux' + TimeoutInMinutes: 120 diff --git a/tools/ci_build/github/linux/docker/scripts/install_ubuntu.sh b/tools/ci_build/github/linux/docker/scripts/install_ubuntu.sh index c034d51ea0..15e24f4432 100755 --- a/tools/ci_build/github/linux/docker/scripts/install_ubuntu.sh +++ b/tools/ci_build/github/linux/docker/scripts/install_ubuntu.sh @@ -53,7 +53,8 @@ if [ "$OS_VERSION" = "16.04" ]; then zip \ rsync libunwind8 libpng16-dev libexpat1-dev \ python3-setuptools python3-numpy python3-wheel python python3-pip python3-pytest \ - libprotobuf-dev libprotobuf9v5 protobuf-compiler" + libprotobuf-dev libprotobuf9v5 protobuf-compiler \ + openjdk-8-jdk" else # ubuntu18.04 PACKAGE_LIST="autotools-dev \ automake \ @@ -85,7 +86,8 @@ else # ubuntu18.04 zip \ rsync libunwind8 libpng-dev libexpat1-dev \ python3-setuptools python3-numpy python3-wheel python python3-pip python3-pytest \ - libprotobuf-dev libprotobuf10 protobuf-compiler" + libprotobuf-dev libprotobuf10 protobuf-compiler \ + openjdk-11-jdk" fi if [ $DEVICE_TYPE = "Normal" ]; then