Skip to content

Commit 30ade3c

Browse files
committed
fix has-matching-changes to reflect latest script changes
1 parent 6f6ad52 commit 30ade3c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

buildspec.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,9 @@ phases:
4747

4848
# spark integration tests
4949
- cd $CODEBUILD_SRC_DIR/sagemaker-spark-sdk
50+
- HAS_MATCHING_CHANGES_OUTPUT=$(has-matching-changes "src/" "test/" "build.sbt")
5051
- |
51-
if has-matching-changes "src/" "test/" "build.sbt"; then
52+
if [ "$HAS_MATCHING_CHANGES" = "Changes Found" ] ; then
5253
cd $CODEBUILD_SRC_DIR/integration-tests/sagemaker-spark-sdk
5354
sbt -Dsbt.log.noformat=true it:test
5455
else
@@ -57,8 +58,9 @@ phases:
5758
5859
# pyspark integration tests
5960
- cd $CODEBUILD_SRC_DIR/sagemaker-pyspark-sdk
61+
- HAS_MATCHING_CHANGES_OUTPUT=$(has-matching-changes "src/" "tests/" "setup.*" "requirements.txt" "tox.ini)
6062
- |
61-
if has-matching-changes "src/" "tests/" "setup.*" "requirements.txt" "tox.ini"; then
63+
if [ "$HAS_MATCHING_CHANGES" = "Changes Found" ] ; then
6264
IGNORE_COVERAGE=- \
6365
tox -e py36 -- $CODEBUILD_SRC_DIR/integration-tests/sagemaker-pyspark-sdk/tests/ -n 10 --boxed --reruns 2
6466
else

0 commit comments

Comments
 (0)