mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Enable win integration tests (#424)
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
parent
5106a4eec1
commit
0888ad8c5d
@ -13,7 +13,6 @@ trigger:
|
|||||||
- "*"
|
- "*"
|
||||||
jobs:
|
jobs:
|
||||||
- job: Windows
|
- job: Windows
|
||||||
condition: "and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))"
|
|
||||||
pool:
|
pool:
|
||||||
vmImage: windows-2019
|
vmImage: windows-2019
|
||||||
strategy:
|
strategy:
|
||||||
@ -34,10 +33,14 @@ jobs:
|
|||||||
inputs:
|
inputs:
|
||||||
key: yarn | $(Agent.OS) | yarn.lock
|
key: yarn | $(Agent.OS) | yarn.lock
|
||||||
path: $(YARN_CACHE_FOLDER)
|
path: $(YARN_CACHE_FOLDER)
|
||||||
|
cacheHitVar: CACHE_RESTORED
|
||||||
displayName: Cache Yarn packages
|
displayName: Cache Yarn packages
|
||||||
- script: make deps
|
- script: make deps
|
||||||
displayName: Install dependencies
|
displayName: Install dependencies
|
||||||
|
- script: make integration-win
|
||||||
|
displayName: Run integration tests
|
||||||
- script: make build
|
- script: make build
|
||||||
|
condition: "and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))"
|
||||||
displayName: Build
|
displayName: Build
|
||||||
env:
|
env:
|
||||||
WIN_CSC_LINK: $(WIN_CSC_LINK)
|
WIN_CSC_LINK: $(WIN_CSC_LINK)
|
||||||
@ -53,6 +56,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- script: CI_BUILD_TAG=`git describe --tags` && echo "##vso[task.setvariable variable=CI_BUILD_TAG]$CI_BUILD_TAG"
|
- 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
|
displayName: Set the tag name as an environment variable
|
||||||
|
condition: "and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))"
|
||||||
- task: NodeTool@0
|
- task: NodeTool@0
|
||||||
inputs:
|
inputs:
|
||||||
versionSpec: $(node_version)
|
versionSpec: $(node_version)
|
||||||
@ -142,6 +146,7 @@ jobs:
|
|||||||
SNAP_LOGIN: $(SNAP_LOGIN)
|
SNAP_LOGIN: $(SNAP_LOGIN)
|
||||||
- script: make build
|
- script: make build
|
||||||
displayName: Build
|
displayName: Build
|
||||||
|
condition: "and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))"
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: $(GH_TOKEN)
|
GH_TOKEN: $(GH_TOKEN)
|
||||||
- bash: |
|
- bash: |
|
||||||
|
|||||||
@ -3,7 +3,7 @@ import { Application } from "spectron";
|
|||||||
let appPath = ""
|
let appPath = ""
|
||||||
switch(process.platform) {
|
switch(process.platform) {
|
||||||
case "win32":
|
case "win32":
|
||||||
appPath = "./dist/win-unpacked/Lens.exe"
|
appPath = "./dist/win-unpacked/LensDev.exe"
|
||||||
break
|
break
|
||||||
case "linux":
|
case "linux":
|
||||||
appPath = "./dist/linux-unpacked/kontena-lens"
|
appPath = "./dist/linux-unpacked/kontena-lens"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user