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:
parent
e33d297d8e
commit
9482aff80f
@ -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
8
.travis/goreportcard.sh
Normal 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
|
Loading…
x
Reference in New Issue
Block a user