Skip to content

Commit

Permalink
[FLINK-32834] Run all compile scripts from root directory
Browse files Browse the repository at this point in the history
- make it easier to work with relative paths
  - specifically, useful to have the scripts rely on mvnv by default (follow-up)
  • Loading branch information
zentol committed Aug 17, 2023
1 parent 1d1fe53 commit 5d163dd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
4 changes: 1 addition & 3 deletions tools/ci/license_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ FLINK_DEPLOYED_ROOT=$4

source "${CI_DIR}/maven-utils.sh"

cd $CI_DIR/flink-ci-tools/

run_mvn exec:java -Dexec.mainClass=org.apache.flink.tools.ci.licensecheck.LicenseChecker -Dexec.args=\"$MVN_CLEAN_COMPILE_OUT $FLINK_ROOT $FLINK_DEPLOYED_ROOT\"
run_mvn -pl tools/ci/flink-ci-tools exec:java -Dexec.mainClass=org.apache.flink.tools.ci.licensecheck.LicenseChecker -Dexec.args=\"$MVN_CLEAN_COMPILE_OUT $FLINK_ROOT $FLINK_DEPLOYED_ROOT\"
EXIT_CODE=$?

if [ $EXIT_CODE != 0 ]; then
Expand Down
4 changes: 1 addition & 3 deletions tools/ci/verify_bundled_optional.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ run_mvn dependency:tree -B > "${dependency_plugin_output}"

cat "${dependency_plugin_output}"

cd "${CI_DIR}/flink-ci-tools/" || exit

run_mvn exec:java -Dexec.mainClass=org.apache.flink.tools.ci.optional.ShadeOptionalChecker -Dexec.args=\""${MVN_CLEAN_COMPILE_OUT}" "${dependency_plugin_output}"\"
run_mvn -pl tools/ci/flink-ci-tools exec:java -Dexec.mainClass=org.apache.flink.tools.ci.optional.ShadeOptionalChecker -Dexec.args=\""${MVN_CLEAN_COMPILE_OUT}" "${dependency_plugin_output}"\"
EXIT_CODE=$?

if [ $EXIT_CODE != 0 ]; then
Expand Down
4 changes: 1 addition & 3 deletions tools/ci/verify_scala_suffixes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,7 @@ if [ $EXIT_CODE != 0 ]; then
exit 1
fi

cd "${CI_DIR}/flink-ci-tools/" || exit

run_mvn exec:java -Dexec.mainClass=org.apache.flink.tools.ci.suffixcheck.ScalaSuffixChecker -Dexec.args=\""${dependency_plugin_output}" "${FLINK_ROOT}"\"
run_mvn -pl tools/ci/flink-ci-tools exec:java exec:java -Dexec.mainClass=org.apache.flink.tools.ci.suffixcheck.ScalaSuffixChecker -Dexec.args=\""${dependency_plugin_output}" "${FLINK_ROOT}"\"
EXIT_CODE=$?

if [ $EXIT_CODE == 0 ]; then
Expand Down

0 comments on commit 5d163dd

Please sign in to comment.