forked from brackets-userland/brackets-electron
-
Notifications
You must be signed in to change notification settings - Fork 1
/
appveyor.yml
52 lines (44 loc) · 1.23 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
branches:
only:
- master
platform:
- x64
environment:
global:
TEST_JUNIT_XML_ROOT: c:\projects\junit-test-results
NODE_VERSION: 10
# set clone depth
clone_depth: 5 # clone entire repository history if not defined
cache:
- node_modules
- '%USERPROFILE%\.electron'
- '%APPDATA%\npm'
install:
- git submodule update --init --recursive
- ps: Install-Product node $env:NODE_VERSION $env:PLATFORM
- set PATH=%APPDATA%\npm;%PATH%
- node --version
- npm --version
- npm install
build_script:
- IF "%APPVEYOR_PULL_REQUEST_NUMBER%"=="" (
npm run publish-win
) ELSE (
npm run pack
)
test_script:
- npm run test:prepare:ci
- npm run test:unit
- npm run test:integration
- npm run test:mainview
- npm run test:extension
on_finish:
# upload results to AppVeyor
- ps: |
$wc = New-Object 'System.Net.WebClient'
$endpoint = "https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)"
Get-ChildItem -Path $env:TEST_JUNIT_XML_ROOT -Recurse -File -Name -Include "*.xml" | ForEach-Object {
$full = "$($env:TEST_JUNIT_XML_ROOT)\$($_)"
Write-Output "Uploading JUnit XML file $($full)"
$wc.UploadFile($endpoint, $full)
}