Skip to content

Commit 4c51c5d

Browse files
authored
fix has-matching-changes to reflect latest script changes (#105)
1 parent 6f6ad52 commit 4c51c5d

File tree

1 file changed

+5
-15
lines changed

1 file changed

+5
-15
lines changed

buildspec.yml

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -46,21 +46,11 @@ phases:
4646
tox -e py27,py36,stats -- tests/
4747

4848
# spark integration tests
49-
- cd $CODEBUILD_SRC_DIR/sagemaker-spark-sdk
50-
- |
51-
if has-matching-changes "src/" "test/" "build.sbt"; then
52-
cd $CODEBUILD_SRC_DIR/integration-tests/sagemaker-spark-sdk
53-
sbt -Dsbt.log.noformat=true it:test
54-
else
55-
echo "skipping spark integration tests"
56-
fi
49+
- cd $CODEBUILD_SRC_DIR/integration-tests/sagemaker-spark-sdk
50+
- test_cmd="sbt -Dsbt.log.noformat=true it:test"
51+
- execute-command-if-has-matching-changes "$test_cmd" "src/" "test/" "build.sbt" "buildspec.yml"
5752

5853
# pyspark integration tests
5954
- cd $CODEBUILD_SRC_DIR/sagemaker-pyspark-sdk
60-
- |
61-
if has-matching-changes "src/" "tests/" "setup.*" "requirements.txt" "tox.ini"; then
62-
IGNORE_COVERAGE=- \
63-
tox -e py36 -- $CODEBUILD_SRC_DIR/integration-tests/sagemaker-pyspark-sdk/tests/ -n 10 --boxed --reruns 2
64-
else
65-
echo "skipping pyspark integration tests"
66-
fi
55+
- test_cmd="IGNORE_COVERAGE=- tox -e py36 -- $CODEBUILD_SRC_DIR/integration-tests/sagemaker-pyspark-sdk/tests/ -n 10 --boxed --reruns 2"
56+
- execute-command-if-has-matching-changes "$test_cmd" "src/" "tests/" "setup.*" "requirements.txt" "tox.ini" "buildspec.yml"

0 commit comments

Comments
 (0)