From 759f30ee8b03f1af4b5e8558cc3b593cc3a1fd31 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Sat, 23 Nov 2019 17:38:27 +0800 Subject: [PATCH] Not triggering CI if only docs are updated. --- .travis.yml | 10 ++++++++-- README.md | 4 ++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 2137d24..3feccc1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,10 +16,16 @@ matrix: - env: EVM_EMACS=emacs-git-snapshot-travis-linux-xenial before_install: - - curl -fsSkL https://gist.github.com/rejeep/ebcd57c3af83b049833b/raw > x.sh && source ./x.sh - - evm install $EVM_EMACS --use --skip + - | + if ! git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(.md)|(.png)|(.pdf)|(.html)|^(LICENSE)|^(docs)' + then + echo "Not running CI since only docs were changed." + exit + fi install: + - curl -fsSkL https://gist.github.com/rejeep/ebcd57c3af83b049833b/raw > x.sh && source ./x.sh + - evm install $EVM_EMACS --use --skip - cask install script: diff --git a/README.md b/README.md index 8466509..9637601 100644 --- a/README.md +++ b/README.md @@ -393,7 +393,7 @@ Run `M-x customize-group RET doom-modeline RET` or set the variables. ## Donate -If you think it's helpful for you, please consider pay a cup of coffee for me. Thank you! :smile: +If you think it's helpful for you, please consider paying a cup of coffee for me. Thank you! :smile: Wechat Pay +alt="PayPal"/>