Trigger travis builds when .travis changes
This commit is contained in:
@ -77,7 +77,7 @@ jobs:
|
|||||||
- ~/.npm
|
- ~/.npm
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- .travis/affects.sh explorer/ || travis_terminate 0
|
- .travis/affects.sh explorer/ .travis || travis_terminate 0
|
||||||
- cd explorer
|
- cd explorer
|
||||||
|
|
||||||
script:
|
script:
|
||||||
@ -99,7 +99,7 @@ jobs:
|
|||||||
- ~/.npm
|
- ~/.npm
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- .travis/affects.sh web3.js/ || travis_terminate 0
|
- .travis/affects.sh web3.js/ .travis || travis_terminate 0
|
||||||
- cd web3.js/
|
- cd web3.js/
|
||||||
- source .travis/before_install.sh
|
- source .travis/before_install.sh
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# Check if files in the commit range match a regex
|
# Check if files in the commit range match one or more prefixes
|
||||||
#
|
#
|
||||||
|
|
||||||
(
|
(
|
||||||
@ -9,10 +9,12 @@
|
|||||||
)
|
)
|
||||||
|
|
||||||
for file in $(git diff --name-only "$TRAVIS_COMMIT_RANGE"); do
|
for file in $(git diff --name-only "$TRAVIS_COMMIT_RANGE"); do
|
||||||
if [[ $file =~ ^"$1" ]]; then
|
for prefix in "$@"; do
|
||||||
|
if [[ $file =~ ^"$prefix" ]]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
done
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "No modifications to $1"
|
echo "No modifications to $@"
|
||||||
exit 1
|
exit 1
|
||||||
|
Reference in New Issue
Block a user