Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Travis CI - skip unit tests for documentation changes #5267

Merged
merged 2 commits into from
Apr 19, 2019

Conversation

zvecr
Copy link
Member

@zvecr zvecr commented Feb 28, 2019

Description

Currently unit tests take 35s, which if you have only changed docs is a waste of cpu cycles. Given the limit of 5 concurrent builds, any time saved helps to keep the build job backlog free.

This PR follows the ideas configured within travis_build.sh and sets up Travis to skip tests on non master branches with only docs changes.

This could safely be extended to keyboard and community layout folders if required.

Types of Changes

  • Core
  • Bugfix
  • New feature
  • Enhancement/optimization
  • Keyboard (addition or update)
  • Keymap/layout/userspace (addition or update)
  • Documentation

Checklist

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • I have tested the changes and verified that they work and don't break anything (as well as I can manage).

util/travis_test.sh Outdated Show resolved Hide resolved
util/travis_test.sh Outdated Show resolved Hide resolved
@drashna
Copy link
Member

drashna commented Mar 6, 2019

@jackhumbert and @skullydazed Do you see any issues with this?

@skullydazed skullydazed merged commit 50fce7f into qmk:master Apr 19, 2019
@skullydazed
Copy link
Member

Thanks!

foosinn pushed a commit to foosinn/qmk_firmware that referenced this pull request May 6, 2019
* Add script to skip tests on non master branches with only docs changes

* Review comments - Use 'grep -c' instead of 'wc -l'
shimesaba-type0 pushed a commit to shimesaba-type0/qmk_firmware that referenced this pull request Jun 22, 2019
* Add script to skip tests on non master branches with only docs changes

* Review comments - Use 'grep -c' instead of 'wc -l'
Timbus pushed a commit to Timbus/qmk_firmware that referenced this pull request Jun 23, 2019
* Add script to skip tests on non master branches with only docs changes

* Review comments - Use 'grep -c' instead of 'wc -l'
@zvecr zvecr deleted the feature/docs_skip_tests branch April 28, 2020 00:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants