Skip to content
This repository was archived by the owner on Oct 10, 2022. It is now read-only.

Commit 46e2389

Browse files
authored
Skip or trigger Travis based on commit message (#82)
* Skip or trigger Travis based on commit message * Fix travis expression #skip_ci
1 parent d3746ec commit 46e2389

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ deploy:
77
provider: script
88
script: 'bash -x ${TRAVIS_BUILD_DIR}/scripts/travis/deploy'
99
skip_cleanup: true
10-
if: 'branch = master OR type = pull_request'
10+
if: '(branch = master OR type = pull_request OR commit_message =~ /.*#trigger_ci.*/) AND (NOT commit_message =~ /.*#skip_ci.*/)'
1111
language: cpp
1212
matrix:
1313
include:

support/docker/travis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def __init__(self, images):
1111
def generate(self, args):
1212
travis_obj = {
1313
'language': 'cpp',
14-
'if': 'branch = master OR type = pull_request',
14+
'if': '(branch = master OR type = pull_request OR commit_message =~ /.*#trigger_ci.*/) AND (NOT commit_message =~ /.*#skip_ci.*/)',
1515
'matrix': {
1616
},
1717
'before_install': [

0 commit comments

Comments
 (0)