From be746104d1766a8c363e74d6063144657820d688 Mon Sep 17 00:00:00 2001 From: Michael D Kinney Date: Mon, 14 Dec 2020 20:30:56 -0800 Subject: .azurepipelines: Use alternate cmocka repo Use git config insteadOf feature to use an alternate cmocka repo from github when running CI. Cc: Sean Brogan Cc: Bret Barkelew Cc: Liming Gao Signed-off-by: Michael D Kinney Reviewed-by: Liming Gao --- .azurepipelines/templates/platform-build-run-steps.yml | 3 +++ .azurepipelines/templates/pr-gate-steps.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.azurepipelines/templates/platform-build-run-steps.yml b/.azurepipelines/templates/platform-build-run-steps.yml index 97e7faa..b712e2f 100644 --- a/.azurepipelines/templates/platform-build-run-steps.yml +++ b/.azurepipelines/templates/platform-build-run-steps.yml @@ -51,6 +51,9 @@ steps: # Set default - bash: echo "##vso[task.setvariable variable=pkg_count]${{ 1 }}" +# Use altername cmocka repo +- bash: git config --global url.https://github.com/neverware-mirrors/cmocka.git.insteadOf https://git.cryptomilk.org/projects/cmocka.git + # Fetch the target branch so that pr_eval can diff them. # Seems like azure pipelines/github changed checkout process in nov 2020. - script: git fetch origin $(System.PullRequest.targetBranch) diff --git a/.azurepipelines/templates/pr-gate-steps.yml b/.azurepipelines/templates/pr-gate-steps.yml index 70c19a4..28edb45 100644 --- a/.azurepipelines/templates/pr-gate-steps.yml +++ b/.azurepipelines/templates/pr-gate-steps.yml @@ -31,6 +31,9 @@ steps: echo "##vso[task.setvariable variable=pkgs_to_build]${{ parameters.build_pkgs }}" echo "##vso[task.setvariable variable=pkg_count]${{ 1 }}" +# Use altername cmocka repo +- bash: git config --global url.https://github.com/neverware-mirrors/cmocka.git.insteadOf https://git.cryptomilk.org/projects/cmocka.git + # Fetch the target branch so that pr_eval can diff them. # Seems like azure pipelines/github changed checkout process in nov 2020. - script: git fetch origin $(System.PullRequest.targetBranch) -- cgit v1.1