summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-11-25 00:38:37 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-12-16 17:50:20 +0900
commit5bf0060e0a506d8b7a85e0f63898cb1cc8d4dcba (patch)
treeb056a8aa2f4bae1550a025283dd17525b3589eee
parent32ee6f80ee1737699ead57bf577f0b1b90c2523e (diff)
[DOC] Skip tests if only documents change [ci skip]
Run only checks for source code. Currently, our CIs do almost nothing about the documents.
-rw-r--r--.appveyor.yml1
-rw-r--r--.github/workflows/baseruby.yml1
-rw-r--r--.github/workflows/check_dependencies.yml1
-rw-r--r--.github/workflows/codeql-analysis.yml1
-rw-r--r--.github/workflows/compilers.yml1
-rw-r--r--.github/workflows/mingw.yml1
-rw-r--r--.github/workflows/mjit.yml1
-rw-r--r--.github/workflows/spec_guards.yml1
-rw-r--r--.github/workflows/ubuntu.yml1
-rw-r--r--.github/workflows/windows.yml1
-rw-r--r--.github/workflows/yjit-ubuntu.yml1
-rw-r--r--.github/workflows/yjit_asm_tests.yml1
-rw-r--r--.travis.yml2
13 files changed, 14 insertions, 0 deletions
diff --git a/.appveyor.yml b/.appveyor.yml
index d2dd2c9e15..037c8d6df6 100644
--- a/.appveyor.yml
+++ b/.appveyor.yml
@@ -11,6 +11,7 @@ clone_depth: 10
platform:
- x64
skip_commits:
+ message: /^\[DOC\]/
files:
- doc/*
- '**/*.md'
diff --git a/.github/workflows/baseruby.yml b/.github/workflows/baseruby.yml
index 24b867c7fc..4e5e40d77c 100644
--- a/.github/workflows/baseruby.yml
+++ b/.github/workflows/baseruby.yml
@@ -20,6 +20,7 @@ jobs:
baseruby:
name: BASERUBY
runs-on: ubuntu-20.04
+ if: ${{ !startsWith(github.event.head_commit.message, '[DOC]') }}
strategy:
matrix:
ruby:
diff --git a/.github/workflows/check_dependencies.yml b/.github/workflows/check_dependencies.yml
index c68e49a464..35fd299554 100644
--- a/.github/workflows/check_dependencies.yml
+++ b/.github/workflows/check_dependencies.yml
@@ -22,6 +22,7 @@ jobs:
os: [ubuntu-20.04]
fail-fast: true
runs-on: ${{ matrix.os }}
+ if: ${{ !startsWith(github.event.head_commit.message, '[DOC]') }}
steps:
- name: Install libraries
run: |
diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml
index d22da8e481..486f4a3b5a 100644
--- a/.github/workflows/codeql-analysis.yml
+++ b/.github/workflows/codeql-analysis.yml
@@ -23,6 +23,7 @@ jobs:
# CodeQL runs on ubuntu-latest and windows-latest
runs-on: ubuntu-latest
+ if: ${{ !startsWith(github.event.head_commit.message, '[DOC]') }}
env:
enable_install_doc: no
diff --git a/.github/workflows/compilers.yml b/.github/workflows/compilers.yml
index 2c2b6598f7..23529e5036 100644
--- a/.github/workflows/compilers.yml
+++ b/.github/workflows/compilers.yml
@@ -188,6 +188,7 @@ jobs:
container:
image: ghcr.io/ruby/ruby-ci-image:${{ matrix.entry.container || 'clang-14' }}
options: --user root
+ if: ${{ !startsWith(github.event.head_commit.message, '[DOC]') }}
steps:
- run: id
working-directory:
diff --git a/.github/workflows/mingw.yml b/.github/workflows/mingw.yml
index c2db3df1ad..b93c653eb3 100644
--- a/.github/workflows/mingw.yml
+++ b/.github/workflows/mingw.yml
@@ -42,6 +42,7 @@ jobs:
base_ruby: head
test_task: [ "check" ] # to make job names consistent
fail-fast: false
+ if: ${{ !startsWith(github.event.head_commit.message, '[DOC]') }}
steps:
- run: mkdir build
working-directory:
diff --git a/.github/workflows/mjit.yml b/.github/workflows/mjit.yml
index 0578104c7f..540c8e9c80 100644
--- a/.github/workflows/mjit.yml
+++ b/.github/workflows/mjit.yml
@@ -23,6 +23,7 @@ jobs:
jit_opts: [ "--mjit", "--mjit-wait" ]
fail-fast: false
runs-on: ubuntu-latest
+ if: ${{ !startsWith(github.event.head_commit.message, '[DOC]') }}
env:
TESTOPTS: '-q --tty=no'
RUN_OPTS: '--disable-gems ${{ matrix.jit_opts }} --mjit-debug=-ggdb3'
diff --git a/.github/workflows/spec_guards.yml b/.github/workflows/spec_guards.yml
index 79ef8a6cc0..27acbdad12 100644
--- a/.github/workflows/spec_guards.yml
+++ b/.github/workflows/spec_guards.yml
@@ -20,6 +20,7 @@ jobs:
rubyspec:
name: Rubyspec
runs-on: ubuntu-20.04
+ if: ${{ !startsWith(github.event.head_commit.message, '[DOC]') }}
strategy:
matrix:
# Specs from ruby/spec should still run on all supported Ruby versions.
diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml
index e63e12ac0e..1c3f27eaef 100644
--- a/.github/workflows/ubuntu.yml
+++ b/.github/workflows/ubuntu.yml
@@ -36,6 +36,7 @@ jobs:
GITPULLOPTIONS: --no-tags origin ${{github.ref}}
RUBY_DEBUG: ci
runs-on: ${{ matrix.os }}
+ if: ${{ !startsWith(github.event.head_commit.message, '[DOC]') }}
steps:
- run: mkdir build
working-directory:
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml
index 60f9b760ec..79f9dd3be2 100644
--- a/.github/workflows/windows.yml
+++ b/.github/workflows/windows.yml
@@ -28,6 +28,7 @@ jobs:
# vcvars: '"C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"'
fail-fast: false
runs-on: ${{ matrix.os }}
+ if: ${{ !startsWith(github.event.head_commit.message, '[DOC]') }}
name: VisualStudio ${{ matrix.vs }}
env:
GITPULLOPTIONS: --no-tags origin ${{github.ref}}
diff --git a/.github/workflows/yjit-ubuntu.yml b/.github/workflows/yjit-ubuntu.yml
index 966f9fd1c7..9e19323cf8 100644
--- a/.github/workflows/yjit-ubuntu.yml
+++ b/.github/workflows/yjit-ubuntu.yml
@@ -43,6 +43,7 @@ jobs:
RUN_OPTS: ${{ matrix.yjit_opts }}
RUBY_DEBUG: ci
runs-on: ${{ matrix.os }}
+ if: ${{ !startsWith(github.event.head_commit.message, '[DOC]') }}
steps:
- run: mkdir build
working-directory:
diff --git a/.github/workflows/yjit_asm_tests.yml b/.github/workflows/yjit_asm_tests.yml
index 58f294f137..e79948217f 100644
--- a/.github/workflows/yjit_asm_tests.yml
+++ b/.github/workflows/yjit_asm_tests.yml
@@ -19,6 +19,7 @@ concurrency:
jobs:
test:
runs-on: ubuntu-latest
+ if: ${{ !startsWith(github.event.head_commit.message, '[DOC]') }}
steps:
- name: Install dependencies
run: |
diff --git a/.travis.yml b/.travis.yml
index eb816b815b..0255e9611f 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -13,6 +13,8 @@ language: c
os: linux
+if: commit_message !~ /^\[DOC\]/
+
dist: focal
git: