提交 d0ee8f64 编写于 作者: M Mislav Marohnić

Fix `script/build test` after moving to `vendor/` directory

上级 753c0c55
......@@ -33,6 +33,10 @@ find_source_files() {
find . -maxdepth 2 -name '*.go' '!' -name '*_test.go' "$@"
}
find_packages() {
find_source_files | cut -d/ -f2 | sort -u | grep -v '.go$' | sed 's!^!github.com/github/hub/!'
}
count_changed_files() {
printf %d $(find_source_files -newer "$1" | wc -l)
}
......@@ -48,7 +52,7 @@ build_hub() {
test_hub() {
setup_gopath
go test ./...
find_packages | xargs go test
}
case "$1" in
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册