diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2018-10-06 18:09:56 +0100 |
---|---|---|
committer | Jon Turney <jon.turney@dronecode.org.uk> | 2018-10-14 16:01:22 +0100 |
commit | 7bdb39668bd2efd579d94e7d69a0b429e026499b (patch) | |
tree | 8b2507af902dcfec0381302c4e3dc4994feb809a /skip_ci.py | |
parent | a0a0c244e2a062ceba357f05d4852cd063f0b0cd (diff) | |
download | meson-7bdb39668bd2efd579d94e7d69a0b429e026499b.zip meson-7bdb39668bd2efd579d94e7d69a0b429e026499b.tar.gz meson-7bdb39668bd2efd579d94e7d69a0b429e026499b.tar.bz2 |
Add an azure-pipelines.yml
v1:
Add an azure-pipelines.yml
Don't check source line endings if autocrlf is on
Handle origin-only refs in skip_ci
Add .py to PATHEXT for the benefit of test_find_program()
Publish logs as build artifacts and publish test results
v2:
Use .gitattributes to override autocrlf
Move tmpdir, so it's not a subdir of source directory, otherwise it gets
included in line-ending checks.
Use serial build numbers, rather than date.dailybuildnumber
Workaround for #3239 is no longer needed now a fix has been commited
Tweak test results and artefact naming
Wait for MS-MPI installers to complete
Publish test results even if tests had an error
Diffstat (limited to 'skip_ci.py')
-rwxr-xr-x | skip_ci.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -54,9 +54,13 @@ def main(): help='Branch push is targeted to') parser.add_argument('--is-pull-env', required=True, help='Variable set if it is a PR') + parser.add_argument('--base-branch-origin', action='store_true', + help='Base branch reference is only in origin remote') args = parser.parse_args() check_pr(args.is_pull_env) base = get_base_branch(args.base_branch_env) + if args.base_branch_origin: + base = 'origin/' + base if all(is_documentation(f) for f in get_git_files(base)): print("Don't run CI for documentation-only changes, add '[skip ci]' to commit title.") print('See http://mesonbuild.com/Contributing.html#skipping-integration-tests') |