Prepare Travis CI for web3.js and explorer
This commit is contained in:
18
.travis/affects.sh
Executable file
18
.travis/affects.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# Check if files in the commit range match a regex
|
||||
#
|
||||
|
||||
(
|
||||
set -x
|
||||
git diff --name-only $TRAVIS_COMMIT_RANGE
|
||||
)
|
||||
|
||||
for file in $(git diff --name-only $TRAVIS_COMMIT_RANGE); do
|
||||
if [[ $file =~ ^"$1" ]]; then
|
||||
exit 0
|
||||
fi
|
||||
done
|
||||
|
||||
echo "No modifications to $1"
|
||||
exit 1
|
Reference in New Issue
Block a user