Skip to content

fix has-matching-changes to reflect latest script changes #105

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jan 28, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 5 additions & 15 deletions buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,21 +46,11 @@ phases:
tox -e py27,py36,stats -- tests/

# spark integration tests
- cd $CODEBUILD_SRC_DIR/sagemaker-spark-sdk
- |
if has-matching-changes "src/" "test/" "build.sbt"; then
cd $CODEBUILD_SRC_DIR/integration-tests/sagemaker-spark-sdk
sbt -Dsbt.log.noformat=true it:test
else
echo "skipping spark integration tests"
fi
- cd $CODEBUILD_SRC_DIR/integration-tests/sagemaker-spark-sdk
- test_cmd="sbt -Dsbt.log.noformat=true it:test"
- execute-command-if-has-matching-changes "$test_cmd" "src/" "test/" "build.sbt" "buildspec.yml"

# pyspark integration tests
- cd $CODEBUILD_SRC_DIR/sagemaker-pyspark-sdk
- |
if has-matching-changes "src/" "tests/" "setup.*" "requirements.txt" "tox.ini"; then
IGNORE_COVERAGE=- \
tox -e py36 -- $CODEBUILD_SRC_DIR/integration-tests/sagemaker-pyspark-sdk/tests/ -n 10 --boxed --reruns 2
else
echo "skipping pyspark integration tests"
fi
- test_cmd="IGNORE_COVERAGE=- tox -e py36 -- $CODEBUILD_SRC_DIR/integration-tests/sagemaker-pyspark-sdk/tests/ -n 10 --boxed --reruns 2"
- execute-command-if-has-matching-changes "$test_cmd" "src/" "tests/" "setup.*" "requirements.txt" "tox.ini" "buildspec.yml"