Prepare Travis CI for web3.js and explorer

This commit is contained in:
Michael Vines
2020-06-11 21:56:20 -07:00
parent 2eb6f498a8
commit 6c59093a67
3 changed files with 145 additions and 33 deletions

18
.travis/affects.sh Executable file
View 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