[dist] Mvn deploy (#9777)

This commit is contained in:
chaokunyang
2020-07-30 11:48:31 +08:00
committed by GitHub
parent 9be5a2f0fc
commit 6464bf55c6
15 changed files with 628 additions and 391 deletions
+10 -8
View File
@@ -68,10 +68,12 @@ build_jars_darwin() {
}
build_jars_multiplatform() {
if [[ "${TRAVIS_REPO_SLUG-}" != "ray-project/ray" || "${TRAVIS_PULL_REQUEST-}" != "false" ]]; then
echo "Skip build multiplatform jars when this build is from a pull request or
not a build for commit in ray-project/ray."
return
if [ "${TRAVIS-}" = true ]; then
if [[ "${TRAVIS_REPO_SLUG-}" != "ray-project/ray" || "${TRAVIS_PULL_REQUEST-}" != "false" ]]; then
echo "Skip build multiplatform jars when this build is from a pull request or
not a build for commit in ray-project/ray."
return
fi
fi
download_jars "ray-runtime-$version.jar" "streaming-runtime-$version.jar"
prepare_native
@@ -140,10 +142,10 @@ deploy_jars() {
fi
fi
echo "Start deploying jars"
cd "$WORKSPACE_DIR"/java
mvn -T16 deploy -Dmaven.test.skip=true -Dcheckstyle.skip
cd "$WORKSPACE_DIR"/streaming/java
mvn -T16 deploy -Dmaven.test.skip=true -Dcheckstyle.skip
cd "$WORKSPACE_DIR/java"
mvn -T16 deploy -Dmaven.test.skip=true -Dcheckstyle.skip -Prelease
cd "$WORKSPACE_DIR/streaming/java"
mvn -T16 deploy -Dmaven.test.skip=true -Dcheckstyle.skip -Prelease
echo "Finished deploying jars"
}