From 0007008a13d3eb179aa93d7cc97d499c9b880b6e Mon Sep 17 00:00:00 2001 From: azu Date: Fri, 10 Feb 2017 23:01:53 +0900 Subject: [PATCH] use after_failure --- .travis.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 1d949e6..cf30c3f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,4 +8,6 @@ install: - curl -fSL https://github.com/haya14busa/reviewdog/releases/download/$REVIEWDOG_VERSION/reviewdog_linux_amd64 -o ~/bin/reviewdog && chmod +x ~/bin/reviewdog - npm install script: - - $(npm bin)/textlint -f checkstyle README.md | reviewdog -f=checkstyle -name="textlint" -ci="travis" \ No newline at end of file + - npm test +after_failure: + - test $TRAVIS_PULL_REQUEST == "false" && $(npm bin)/textlint -f checkstyle README.md | reviewdog -f=checkstyle -name="textlint" -ci="travis" \ No newline at end of file