From 37ed1e4796aea97839347ee69ae35f482eeda138 Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Tue, 21 May 2019 11:12:29 -0700 Subject: [PATCH 1/3] Split out integration tests into its own job This will make Linux finish faster and release trigger faster --- azure-pipelines.yml | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index f6acee37..e3c5b356 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -22,11 +22,6 @@ jobs: - script: | yarn mocha displayName: 'Unit tests' - - script: | - yarn start & - sleep 5 - yarn test-api --headless - displayName: 'Integration tests' - script: | yarn lint displayName: 'Lint' @@ -71,12 +66,34 @@ jobs: - script: | yarn lint displayName: 'Lint' + +- job: 'Integration tests' + pool: + vmImage: 'ubuntu-16.04' + steps: + - task: NodeTool@0 + inputs: + versionSpec: '8.x' + displayName: 'Install Node.js' + - task: geeklearningio.gl-vsts-tasks-yarn.yarn-installer-task.YarnInstaller@2 + inputs: + versionSpec: "1.9.4" + displayName: 'Install Yarn' + - script: | + yarn + displayName: 'Install dependencies and build' + - script: | + yarn start & + sleep 5 + yarn test-api --headless + displayName: 'Integration tests' - job: Release dependsOn: - Linux - macOS - Windows + - 'Integration tests' condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master')) pool: vmImage: 'ubuntu-16.04' From ab0eedc513d5521ce675bf668163bb8d68a4bfef Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Tue, 21 May 2019 11:17:07 -0700 Subject: [PATCH 2/3] Fix job name --- azure-pipelines.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index e3c5b356..a8f03125 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -67,7 +67,7 @@ jobs: yarn lint displayName: 'Lint' -- job: 'Integration tests' +- job: IntegrationTests pool: vmImage: 'ubuntu-16.04' steps: @@ -93,7 +93,7 @@ jobs: - Linux - macOS - Windows - - 'Integration tests' + - IntegrationTests condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master')) pool: vmImage: 'ubuntu-16.04' From f81d1cb1cf7c9655c0f5bc0385d18b5096491925 Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Tue, 21 May 2019 14:20:58 -0700 Subject: [PATCH 3/3] Increase integration test sleep --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index a8f03125..17c98198 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -84,7 +84,7 @@ jobs: displayName: 'Install dependencies and build' - script: | yarn start & - sleep 5 + sleep 10 yarn test-api --headless displayName: 'Integration tests'