From e31bb4aa8622eb49a5e53b7b78d854aa42f421cc Mon Sep 17 00:00:00 2001 From: darksun Date: Sat, 27 Oct 2018 17:04:53 +0800 Subject: [PATCH 1/2] =?UTF-8?q?PULL=20REQUEST=E7=9A=84=E6=83=85=E5=86=B5?= =?UTF-8?q?=E4=B8=8B=E4=B8=8D=E8=A6=81=E7=94=9F=E6=88=90badge?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 0b25cff718..95b20955be 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,7 @@ language: c script: - sh ./scripts/check.sh - - ./scripts/badge.sh + - sh -c '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && ./scripts/badge.sh' branches: only: - master From 74be3aadc91682ad7c1771aa71c2f1436ef78515 Mon Sep 17 00:00:00 2001 From: "Xingyu.Wang" Date: Sat, 27 Oct 2018 21:46:11 +0800 Subject: [PATCH 2/2] Update .travis.yml --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 95b20955be..e8d1e49c04 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,7 @@ language: c script: - - sh ./scripts/check.sh - - sh -c '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && ./scripts/badge.sh' + - 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then sh ./scripts/check.sh; fi' + - 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then sh ./scripts/badge.sh; fi' branches: only: - master