Skip to content

Commit

Permalink
Avoid testing in only docs files (Modernizr#2560)
Browse files Browse the repository at this point in the history
* Avoid testing in only docs files

* Only avoid if it is md files
  • Loading branch information
Markel authored May 19, 2020
1 parent 59f35a1 commit 7efb9d0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,14 @@ node_js:
before_install:
- npm install -g npm@latest
before_script:
- |
if ! git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(.md)'
then
echo "Only doc files were updated, not running the CI."
exit
fi
- npm install -g gulp-cli
after_success:
- ./node_modules/.bin/nyc report --reporter=text-lcov | ./node_modules/.bin/codecov --pipe
script:
- npm test

5 changes: 5 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ build: off
before_test:
- npm install -g gulp-cli

# Skipping specific commit files: https://www.appveyor.com/docs/appveyor-yml and https://www.appveyor.com/docs/how-to/filtering-commits
skip_commits:
files:
- '**/*.md'

test_script:
- node --version
- npm --version
Expand Down

0 comments on commit 7efb9d0

Please sign in to comment.