1
0
Fork 0
mirror of https://github.com/thoughtbot/shoulda-matchers.git synced 2022-11-09 12:01:38 -05:00

Provide way to force CI run

Usually we only run CI on master or on pull requests that are based on
master, but this adds a way to bypass this check for specific commits.
If you add "[ci run]" or "[run ci]" to a commit then this will force a
build on a branch, even if there is no PR for it.
This commit is contained in:
Elliot Winkler 2020-08-23 22:02:53 -06:00
parent 4dab96cdb1
commit bf1f986b20

View file

@ -38,6 +38,4 @@ before_install:
- gem install bundler -v '< 2' --no-document
install: "bundle install --jobs=3 --retry=3"
script: "bundle exec rake"
branches:
only:
- master
if: branch = master OR commit_message =~ /\[ci run\]/ OR commit_message =~ /\[run ci\]/