forked from symphonyoss/ContainerJS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest-script.ps1
More file actions
28 lines (24 loc) · 865 Bytes
/
test-script.ps1
File metadata and controls
28 lines (24 loc) · 865 Bytes
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
[Environment]::SetEnvironmentVariable("TestResult", "0", "User")
# Don't run tests on PRs
IF ($env:APPVEYOR_REPO_BRANCH -eq "master" -And (-Not (Test-Path Env:\APPVEYOR_PULL_REQUEST_NUMBER))) {
cd .\packages\api-tests
# Run tests individually so we don't fail the build
npm run test:ci:electron
IF ($LASTEXITCODE -ne "0") {
Write-Warning -Message 'Electron Tests Failed'
[Environment]::SetEnvironmentVariable("TestResult", "1", "User")
}
npm run test:ci:openfin
IF ($LASTEXITCODE -ne "0") {
Write-Warning -Message 'OpenFin Tests Failed'
[Environment]::SetEnvironmentVariable("TestResult", "1", "User")
}
npm run test:ci:browser
IF ($LASTEXITCODE -ne "0") {
Write-Warning -Message 'Browser Tests Failed'
[Environment]::SetEnvironmentVariable("TestResult", "1", "User")
}
npm run report
cd ..\..
npm run docs
}