File tree Expand file tree Collapse file tree 1 file changed +5
-15
lines changed Expand file tree Collapse file tree 1 file changed +5
-15
lines changed Original file line number Diff line number Diff line change @@ -46,21 +46,11 @@ phases:
46
46
tox -e py27,py36,stats -- tests/
47
47
48
48
# 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"
57
52
58
53
# pyspark integration tests
59
54
- 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"
You can’t perform that action at this time.
0 commit comments