Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 61b0c5a

Browse files
committed
BLD: only doc CI build
1 parent 78442c4 commit 61b0c5a

File tree

5 files changed

+6
-3
lines changed

5 files changed

+6
-3
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ commands:
1717
export git_log=$(git log --max-count=1 --pretty=format:"%B" | tr "\n" " ")
1818
echo "Got commit message:"
1919
echo "${git_log}"
20-
if [[ -v CIRCLE_PULL_REQUEST ]] && ([[ "$git_log" == *"[skip circle]"* ]] || [[ "$git_log" == *"[circle skip]"* ]]); then
20+
if [[ -v CIRCLE_PULL_REQUEST ]] && ([[ "$git_log" == *"[skip circle]"* ]] || [[ "$git_log" == *"[circle skip]"* ]] [[ "$git_log" == *"[ci doc]"* ]])); then
2121
echo "Skip detected, exiting job ${CIRCLE_JOB} for PR ${CIRCLE_PULL_REQUEST}."
2222
circleci-agent step halt;
2323
fi

.github/workflows/cygwin.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ jobs:
5757
!contains(github.event.head_commit.message, '[ci skip]') &&
5858
!contains(github.event.head_commit.message, '[skip ci]') &&
5959
!contains(github.event.head_commit.message, '[skip github]') &&
60+
!contains(github.event.head_commit.message, '[ci doc]') &&
6061
(
6162
github.event_name == 'push' ||
6263
github.event_name == 'pull_request' &&

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ env:
2525

2626
jobs:
2727
test:
28-
if: "github.event_name == 'workflow_dispatch' || github.repository == 'matplotlib/matplotlib' && !contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[skip github]')"
28+
if: "github.event_name == 'workflow_dispatch' || github.repository == 'matplotlib/matplotlib' && !contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[skip github]' && !contains(github.event.head_commit.message, '[ci doc]')"
2929
permissions:
3030
contents: read
3131
name: "Python ${{ matrix.python-version }} on ${{ matrix.os }} ${{ matrix.name-suffix }}"

azure-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ stages:
2727
git_log=`git log --max-count=1 --skip=1 --pretty=format:"%B" | tr "\n" " "`
2828
echo "##vso[task.setvariable variable=log]$git_log"
2929
- bash: echo "##vso[task.setvariable variable=RET]false"
30-
condition: or(contains(variables.log, '[skip azp]'), contains(variables.log, '[azp skip]'), contains(variables.log, '[skip ci]'), contains(variables.log, '[ci skip]'))
30+
condition: or(contains(variables.log, '[skip azp]'), contains(variables.log, '[azp skip]'), contains(variables.log, '[skip ci]'), contains(variables.log, '[ci skip]'), contains(variables.log, '[ci doc]'))
3131
- bash: echo "##vso[task.setvariable variable=start_main;isOutput=true]$RET"
3232
name: result
3333

doc/devel/coding_guide.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,8 @@ will run on all supported platforms and versions of Python.
373373
- Azure Pipelines: ``[skip azp]``
374374
- CircleCI: ``[skip circle]``
375375

376+
If you only want to run documentation CI you can pass ``[ci doc]``.
377+
376378
.. _pr-squashing:
377379

378380
Number of commits and squashing

0 commit comments

Comments
 (0)