2
0
mirror of https://github.com/hibiken/asynq.git synced 2025-04-22 16:50:18 +08:00

Run goreportcard-cli after successful CI run

This commit is contained in:
Ken Hibino 2020-03-23 08:44:34 -07:00
parent e33d297d8e
commit 9482aff80f
2 changed files with 9 additions and 0 deletions

View File

@ -9,4 +9,5 @@ services:
- redis-server - redis-server
after_success: after_success:
- bash ./.travis/benchcmp.sh - bash ./.travis/benchcmp.sh
- bash ./.travis/goreportcard.sh
- bash <(curl -s https://codecov.io/bash) - bash <(curl -s https://codecov.io/bash)

8
.travis/goreportcard.sh Normal file
View File

@ -0,0 +1,8 @@
if [ "${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}" != "master" ]; then
REMOTE_URL="$(git config --get remote.origin.url)";
cd ${TRAVIS_BUILD_DIR}/.. && \
git clone ${REMOTE_URL} "${TRAVIS_REPO_SLUG}-goreportcard" && \
cd "${TRAVIS_REPO_SLUG}-goreportcard" && \
go get -u github.com/gojp/goreportcard/cmd/goreportcard-cli && \
goreportcard-cli -v
fi