From 7bdb39668bd2efd579d94e7d69a0b429e026499b Mon Sep 17 00:00:00 2001 From: Jon Turney Date: Sat, 6 Oct 2018 18:09:56 +0100 Subject: 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 --- skip_ci.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'skip_ci.py') diff --git a/skip_ci.py b/skip_ci.py index 752dfdc..5e0a7aa 100755 --- a/skip_ci.py +++ b/skip_ci.py @@ -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') -- cgit v1.1