Skip to content

Commit

Permalink
Run Travis every time, but exit early without trigger, tag or relevan…
Browse files Browse the repository at this point in the history
…t changes
  • Loading branch information
radarhere committed Sep 28, 2023
1 parent c20801c commit 51dd0fc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
if: tag IS present

env:
global:
- CONFIG_PATH=wheels/config.sh
Expand Down Expand Up @@ -112,6 +110,12 @@ jobs:
- MB_PYTHON_VERSION=3.12

before_install:
- if [[ "$TRAVIS_TAG" == "" && "$TRAVIS_EVENT_TYPE" != "api" ]]; then
CHANGED_FILES=$(git diff --name-only HEAD~1...HEAD);
if ! [[ "$CHANGED_FILES" =~ .github/workflows/wheels*.yml || "$CHANGED_FILES" =~ wheels/* ]]; then
travis_terminate 0;
fi
fi
- source wheels/multibuild/common_utils.sh
- source wheels/multibuild/travis_steps.sh
- before_install
Expand Down

0 comments on commit 51dd0fc

Please sign in to comment.