Skip to content

Commit 51dd0fc

Browse files
committed
Run Travis every time, but exit early without trigger, tag or relevant changes
1 parent c20801c commit 51dd0fc

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.travis.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
if: tag IS present
2-
31
env:
42
global:
53
- CONFIG_PATH=wheels/config.sh
@@ -112,6 +110,12 @@ jobs:
112110
- MB_PYTHON_VERSION=3.12
113111

114112
before_install:
113+
- if [[ "$TRAVIS_TAG" == "" && "$TRAVIS_EVENT_TYPE" != "api" ]]; then
114+
CHANGED_FILES=$(git diff --name-only HEAD~1...HEAD);
115+
if ! [[ "$CHANGED_FILES" =~ .github/workflows/wheels*.yml || "$CHANGED_FILES" =~ wheels/* ]]; then
116+
travis_terminate 0;
117+
fi
118+
fi
115119
- source wheels/multibuild/common_utils.sh
116120
- source wheels/multibuild/travis_steps.sh
117121
- before_install

0 commit comments

Comments
 (0)