From adadd7ce36fcfe938f20d4c644d9b3a3b9b53924 Mon Sep 17 00:00:00 2001 From: Michael Kriese <michael.kriese@visualon.de> Date: Tue, 19 Nov 2019 08:18:55 +0100 Subject: [PATCH] chore(ci): downgrade macos vm image (#4828) * chore(ci): downgrade macos * chore(ci): use shallow fetch --- azure-pipelines.yml | 3 ++- test/datasource/orb.spec.ts | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 8443af3000..580ca99052 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -12,6 +12,7 @@ pr: variables: YARN_CACHE_FOLDER: $(Pipeline.Workspace)/.yarn CI: true + Agent.Source.Git.ShallowFetchDepth: 1 jobs: - job: 'Windows' @@ -52,7 +53,7 @@ jobs: nodeVersion: '10.x' pythonVersion: '3.7' pool: - vmImage: macOS-10.14 + vmImage: macOS-10.13 steps: - template: .azure/steps.yml diff --git a/test/datasource/orb.spec.ts b/test/datasource/orb.spec.ts index 4db9ad0bf9..6e3227cc9b 100644 --- a/test/datasource/orb.spec.ts +++ b/test/datasource/orb.spec.ts @@ -2,6 +2,9 @@ import _got from '../../lib/util/got'; import * as datasource from '../../lib/datasource'; jest.mock('../../lib/util/got'); +jest.mock('simple-git', () => { + throw new Error('Test'); +}); const got: any = _got; -- GitLab