Skip to content

Commit 5db53fa

Browse files
matthewfeickertkratsg
authored andcommitted
Always test the docs on docs branches (#492)
* Build and test the docs on push builds of /^docs\// branches
1 parent f7b692c commit 5db53fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ script:
2121
after_success: if [[ $TRAVIS_PYTHON_VERSION == '3.7' ]]; then coveralls; fi
2222

2323
# always test (on both 'push' and 'pr' builds in Travis)
24-
# test docs on 'pr' builds and 'push' builds on master
24+
# test docs on 'pr' builds and 'push' builds on master and on docs branches
2525
# benchmark and deploy to PyPI only when merged into master (those mereges are 'push' builds)
2626
stages:
2727
- name: test
2828
if: NOT (branch =~ /^docs\//)
2929
- name: benchmark
3030
if: (branch = master) AND (NOT (type IN (pull_request)))
3131
- name: docs
32-
if: (branch = master)
32+
if: (branch = master) OR (branch =~ /^docs\//)
3333
- name: binder
3434
if: (branch = master) AND (NOT (type IN (pull_request)))
3535
- name: deploy

0 commit comments

Comments
 (0)