Skip to content

Commit

Permalink
remove script import from jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
Katherine Fairchild committed Dec 13, 2023
1 parent 8f4e250 commit db07eef
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ install:
- pip list
# install singularity for container models
- conda install -yc conda-forge singularity
import: brain-score/core:brainscore_core/travis/script.yml@main
import: brain-score/core:brainscore_core/travis/submission_failure.yml@main
import:
- brain-score/core:brainscore_core/travis/script.yml@main
- brain-score/core:brainscore_core/travis/submission_failure.yml@main


jobs:
Expand All @@ -40,4 +41,11 @@ jobs:
python: '3.9'
install: python -m pip install -e ".[test]"
if: type = pull_request
import: brain-score/core:brainscore_core/travis/automerge_check.yml@main
script:
- |
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' ' ' ) &&
PLUGIN_ONLY=$( python -c "from brainscore_core.plugin_management.parse_plugin_changes import is_plugin_only; is_plugin_only(\"${CHANGED_FILES}\", \"brainscore_${DOMAIN}\")" )
fi
- if [ "$PLUGIN_ONLY" = "True" ]; then bash ${TRAVIS_BUILD_DIR}/.github/workflows/travis_trigger.sh $GH_WORKFLOW_TRIGGER $TRAVIS_PULL_REQUEST_SHA; fi

0 comments on commit db07eef

Please sign in to comment.