From 8f86a14d0be2954ab4296055b1676dbb9b6b3af9 Mon Sep 17 00:00:00 2001 From: Lauri Nevala Date: Wed, 10 Jun 2020 11:42:34 +0300 Subject: [PATCH] Enable Windows integration tests Signed-off-by: Lauri Nevala --- .azure-pipelines.yml | 4 ++++ spec/integration/helpers/utils.ts | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml index 2a4751ff33..25cb47e11f 100644 --- a/.azure-pipelines.yml +++ b/.azure-pipelines.yml @@ -37,7 +37,10 @@ jobs: displayName: Cache Yarn packages - script: make deps displayName: Install dependencies + - script: make integration-win + displayName: Run integration tests - script: make build + condition: "and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))" displayName: Build env: WIN_CSC_LINK: $(WIN_CSC_LINK) @@ -53,6 +56,7 @@ jobs: steps: - script: CI_BUILD_TAG=`git describe --tags` && echo "##vso[task.setvariable variable=CI_BUILD_TAG]$CI_BUILD_TAG" displayName: Set the tag name as an environment variable + condition: "and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))" - task: NodeTool@0 inputs: versionSpec: $(node_version) diff --git a/spec/integration/helpers/utils.ts b/spec/integration/helpers/utils.ts index ee138be56e..33aeda65c0 100644 --- a/spec/integration/helpers/utils.ts +++ b/spec/integration/helpers/utils.ts @@ -3,7 +3,7 @@ import { Application } from "spectron"; let appPath = "" switch(process.platform) { case "win32": - appPath = "./dist/win-unpacked/Lens.exe" + appPath = "./dist/win-unpacked/LensDev.exe" break case "linux": appPath = "./dist/linux-unpacked/kontena-lens"