-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathappveyor.yml
53 lines (46 loc) · 1.67 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
image: Visual Studio 2015
environment:
PATH: $(LOCALAPPDATA)\Google\Cloud SDK\google-cloud-sdk\bin;$(APPDATA)\npm;C:\Python27;$(PATH)
GCLOUD_SDK_INSTALLATION_NO_PROMPT: true
CLOUDSDK_PYTHON: C:\Python27\python.exe
cache:
- $(APPDATA)\npm
- $(APPDATA)\npm-cache
- $(USERPROFILE)\Documents\WindowsPowerShell\Modules
- secure-file\tools
- $(LOCALAPPDATA)\Google\Cloud SDK
install:
- ps: Import-Module .\build\BuildFunctions.psm1
- ps: Update-AppveyorBuildVersion
- ps: Install-Module "GoogleCloud"
- ps: Import-Module "GoogleCloud"
- gcloud components install kubectl --quiet
- ps: Install-Product node 6.10.3 # The Node version currently used by VSTS agents.
- npm install typescript -global
- npm install ts-node -global
- npm install tfx-cli -global
- npm install mocha -global
- npm install mocha-appveyor-reporter -global
- npm install nyc -global
- ps: |
if ($env:SERVICE_ACCOUNT_SECRET) {
nuget install secure-file -ExcludeVersion
secure-file\tools\secure-file `
-decrypt "kubectl-build-task\test\resources\Cloud Tools for TFS Testing.json.enc" `
-secret $env:SERVICE_ACCOUNT_SECRET
secure-file\tools\secure-file `
-decrypt "instance-group-ips-build-task\test\resources\Cloud Tools for TFS Testing.json.enc" `
-secret $env:SERVICE_ACCOUNT_SECRET
}
- ps: $allTsTasks = Get-TypeScriptTasks
before_build:
- ps: Initialize-All $allTsTasks
before_package:
- ps: Merge-ExtensionPackage
test_script:
- ps: Invoke-AllMochaTests $allTsTasks "mocha-appveyor-reporter" -throwOnError
after_test:
- ps: Send-Coverage
artifacts:
- path: ./bin/*.vsix
name: ExtensionPackage