Skip to content

Commit

Permalink
Run only docs CI for PRs that start with Docs: (#1643)
Browse files Browse the repository at this point in the history
* Docs: Run only docs CI for PRs that start with Docs:

* dOcS: ignore case
  • Loading branch information
benthecarman committed Jul 9, 2020
1 parent 1970f75 commit cfdee84
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ dist: xenial

jobs:
include:
# compile website, to check for documentation regressions for docs only PRs
- stage: docs
name: Compile Website
env:
- TEST_COMMAND="docs/mdoc"
scala: 2.13.2

- stage: compile
os: linux
name: "Compile & Formatting Check"
Expand Down Expand Up @@ -125,18 +132,24 @@ before_script:
- git submodule sync

stages:
- name: docs
if:
commit_message =~ /(?i)^docs:/ AND NOT
((branch = master AND type = push) OR (tag IS present))
# don't run tests on merge builds, just publish library
# and website
- name: compile
if:
commit_message !~ /^Docs:/ AND NOT
commit_message !~ /(?i)^docs:/ AND NOT
((branch = master AND type = push) OR (tag IS present))
# don't run tests on merge builds, just publish library
# and website
# don't run tests on merge builds, just publish library
# and website
- name: test
if:
commit_message !~ /^Docs:/ AND NOT
commit_message !~ /(?i)^docs:/ AND NOT
((branch = master AND type = push) OR (tag IS present))
# don't run tests on merge builds, just publish library
# and website
# don't run tests on merge builds, just publish library
# and website
- name: release
if: ((branch = master AND type = push) OR (tag IS present)) AND NOT fork

Expand Down

0 comments on commit cfdee84

Please sign in to comment.