Merge pull request #443 from bergwolf/fix-ci

ci: checkout TRAVIS_BRANCH
This commit is contained in:
Hui Zhu 2020-07-27 10:07:13 +08:00 committed by GitHub
commit 2fef265701
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,6 +16,10 @@ clone_tests_repo()
fi
go get -d -u "$tests_repo" || true
if [ -n "${TRAVIS_BRANCH:-}" ]; then
( cd "${tests_repo_dir}" && git checkout "${TRAVIS_BRANCH}" )
fi
}
run_static_checks()