File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 9
9
# The upper-bound dependencies file will be in the format of:
10
10
# ${dependency.name}=${dependency.version}
11
11
12
+ set -ex
13
+
12
14
# Check if a filename was provided as an argument
13
15
if [ -z " $1 " ]; then
14
16
echo " Usage: $0 <dependency_file>"
15
17
exit 1
16
18
fi
17
19
18
- DEPENDENCY_FILE=" $1 "
20
+ UPPER_BOUND_DEPENDENCY_FILE=" $1 "
21
+
22
+ if [ ! -e " ${UPPER_BOUND_DEPENDENCY_FILE} " ]; then
23
+ echo " The inputted upper-bound dependency file '$FILE ' does not exist"
24
+ exit 1
25
+ fi
26
+
19
27
MAVEN_COMMAND=" mvn verify -Penable-integration-tests -Dclirr.skip -Dcheckstyle.skip -Dfmt.skip "
20
28
21
29
# Read the file line by line
@@ -33,7 +41,7 @@ while IFS= read -r line; do
33
41
34
42
# Append the formatted property to the Maven command
35
43
MAVEN_COMMAND+= " -D${dependency.version} =${version} "
36
- done < " ${DEPENDENCY_FILE } "
44
+ done < " ${UPPER_BOUND_DEPENDENCY_FILE } "
37
45
38
46
# Run the generated maven command to test with the dependency versions
39
47
$MAVEN_COMMAND
Original file line number Diff line number Diff line change 44
44
cd -
45
45
# Run for the Showcase tests
46
46
- name : Perform Dependency Compatibility Testing (Showcase)
47
- run : ../.github/scripts/test_dependency_compatibility.sh dependencies.txt
47
+ run : ../.github/scripts/test_dependency_compatibility.sh ../ dependencies.txt
48
48
working-directory : java-showcase
You can’t perform that action at this time.
0 commit comments