Skip to content

Instantly share code, notes, and snippets.

@nojimage
Last active December 4, 2018 06:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nojimage/b64e737f7ca22a04b25da7e74cb2e9a9 to your computer and use it in GitHub Desktop.
Save nojimage/b64e737f7ca22a04b25da7e74cb2e9a9 to your computer and use it in GitHub Desktop.
Exclude run CI job on "WIP:" or "@wip" in the commit message
(...snip...)
- vendor/bin/phpunit --coverage-text --colors=never --exclude-group=external
except:
variables:
- $CI_COMMIT_MESSAGE =~ /(?:^WIP:)|@WIP/i
@nojimage
Copy link
Author

nojimage commented Dec 4, 2018

コミットメッセージが WIP: で始まっているか @WIP を含む場合は、指定CIジョブの実行を除外するやつ

https://docs.gitlab.com/ee/ci/yaml/#onlyvariables

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment