diff --git a/scripts/list_harmony_go_files.sh b/scripts/list_harmony_go_files.sh new file mode 100755 index 000000000..0ef0695e5 --- /dev/null +++ b/scripts/list_harmony_go_files.sh @@ -0,0 +1,7 @@ +#!/bin/sh +exec git ls-files '*.go' | grep -v \ + -e '^vendor/' \ + -e '\.pb\.go$' \ + -e '/mock_stream\.go' \ + -e '/host_mock\.go' \ + -e '/gen_[^/]*\.go' diff --git a/scripts/travis_checker.sh b/scripts/travis_checker.sh index 7188d42d6..dbf48d8eb 100755 --- a/scripts/travis_checker.sh +++ b/scripts/travis_checker.sh @@ -27,12 +27,7 @@ trap 'case "${tmpdir}" in ?*) rm -rf "${tmpdir}";; esac' EXIT tmpdir=$(mktemp -d) go_files="${tmpdir}/go_files.txt" -git ls-files '*.go' | grep -v \ - -e '^vendor/' \ - -e '\.pb\.go$' \ - -e '/mock_stream\.go' \ - -e '/host_mock\.go' \ - -e '/gen_[^/]*\.go' > "${go_files}" +"${progdir}/list_harmony_go_files.sh" > "${go_files}" # Print dirname of each relative pathname from stdin (one per line). dirnames() {