Skip to content

Commit

Permalink
Merge branch 'main' into ks/refactor_scoring_endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
shehadak authored Nov 14, 2023
2 parents d05eaf2 + 7a8e0d1 commit 1827097
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ before_script:
- git fetch --depth=50 origin refs/heads/main:refs/heads/main
script:
# if ONLY plugin files changed, ONLY run tests for those plugins; otherwise, run full test suite
- CHANGED_FILES=$( echo $(git diff --name-only main $TRAVIS_PULL_REQUEST_SHA -C $TRAVIS_BUILD_DIR) | tr '\n' ' ' )
- |
if [ "$TRAVIS_PULL_REQUEST" ]; then
if [ ! -z "$TRAVIS_PULL_REQUEST_BRANCH" ]; then
CHANGED_FILES=$( git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*" && git fetch && echo $(git diff --name-only origin/$TRAVIS_PULL_REQUEST_BRANCH origin/$TRAVIS_BRANCH -C $TRAVIS_BUILD_DIR) | tr '\n' ' ' ) &&
TESTING_NEEDED=$( python -c "from brainscore_core.plugin_management.parse_plugin_changes import get_testing_info; get_testing_info(\"${CHANGED_FILES}\", 'brainscore_language')" ) &&
read MODIFIES_PLUGIN PLUGIN_ONLY <<< $TESTING_NEEDED && echo MODIFIES_PLUGIN: $MODIFIES_PLUGIN && echo PLUGIN_ONLY: $PLUGIN_ONLY;
fi
Expand Down

0 comments on commit 1827097

Please sign in to comment.