Skip to content

Commit aaa1126

Browse files
ci.sh: Add tests for tracking dependencies' 'test-next' branch
parsec-tool depends on several repositories under the parallaxsecond organization. * Add a flag option (--test-next-branch-tracking) in ci.sh to track the 'test-next' branches of said repositories and test parsec-tool with those updates. This test makes use of utils/release_tracking.py Signed-off-by: Tomás González <[email protected]>
1 parent b96f7d1 commit aaa1126

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/ci.sh

+15
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,15 @@ export RUST_LOG=error
1818
# Get Parameters #
1919
##################
2020
MISMATCHER=
21+
TEST_NEXT_BRANCH_TRACKING=
2122
while [ "$#" -gt 0 ]; do
2223
case "$1" in
2324
mismatcher )
2425
MISMATCHER="True"
2526
;;
27+
--test-next-branch-tracking )
28+
TEST_NEXT_BRANCH_TRACKING="True"
29+
;;
2630
*)
2731
error_msg "Unknown argument: $1"
2832
;;
@@ -43,6 +47,17 @@ if [ "$MISMATCHER" = "True" ]; then
4347
exit 0
4448
fi
4549

50+
#########################
51+
# Next branch tracking #
52+
#########################
53+
if [ "$TEST_NEXT_BRANCH_TRACKING" ]; then
54+
echo "Track next branches for parallaxsecond repositories"
55+
python3 $(pwd)/utils/release_tracking.py $(pwd)/Cargo.toml
56+
next_branch_result=$?
57+
if [ "$next_branch_result" -ne 0 ]; then
58+
error_msg "Failed to track next branches of parallaxsecond repositories."
59+
fi
60+
fi
4661
#########
4762
# Build #
4863
#########

0 commit comments

Comments
 (0)