1
1
steps :
2
- - task : CopyFiles@2
3
- displayName : ' Copy Files to: src\electron'
4
- inputs :
5
- TargetFolder : src\electron
2
+ - checkout : self
3
+ path : src\electron
6
4
7
5
- script : |
8
- cd src\ electron
6
+ cd electron
9
7
node script/yarn.js install --frozen-lockfile
10
8
displayName : ' Yarn install'
11
9
12
10
- powershell : |
13
11
$localArtifactPath = "$pwd\dist.zip"
14
12
$serverArtifactPath = "$env:APPVEYOR_URL/buildjobs/$env:APPVEYOR_JOB_ID/artifacts/dist.zip"
15
13
Invoke-RestMethod -Method Get -Uri $serverArtifactPath -OutFile $localArtifactPath -Headers @{ "Authorization" = "Bearer $env:APPVEYOR_TOKEN" }
16
- & "${env:ProgramFiles(x86)}\7-Zip\7z.exe" x -osrc\out \Default -y $localArtifactPath
14
+ & "${env:ProgramFiles(x86)}\7-Zip\7z.exe" x -oout \Default -y $localArtifactPath
17
15
displayName : ' Download and extract dist.zip for test'
18
16
env :
19
17
APPVEYOR_TOKEN : $(APPVEYOR_TOKEN)
20
18
21
19
- powershell : |
22
- $localArtifactPath = "$pwd\src\ out\Default\shell_browser_ui_unittests.exe"
20
+ $localArtifactPath = "$pwd\out\Default\shell_browser_ui_unittests.exe"
23
21
$serverArtifactPath = "$env:APPVEYOR_URL/buildjobs/$env:APPVEYOR_JOB_ID/artifacts/shell_browser_ui_unittests.exe"
24
22
Invoke-RestMethod -Method Get -Uri $serverArtifactPath -OutFile $localArtifactPath -Headers @{ "Authorization" = "Bearer $env:APPVEYOR_TOKEN" }
25
23
displayName : ' Download and extract native test executables for test'
@@ -30,36 +28,34 @@ steps:
30
28
$localArtifactPath = "$pwd\ffmpeg.zip"
31
29
$serverArtifactPath = "$env:APPVEYOR_URL/buildjobs/$env:APPVEYOR_JOB_ID/artifacts/ffmpeg.zip"
32
30
Invoke-RestMethod -Method Get -Uri $serverArtifactPath -OutFile $localArtifactPath -Headers @{ "Authorization" = "Bearer $env:APPVEYOR_TOKEN" }
33
- & "${env:ProgramFiles(x86)}\7-Zip\7z.exe" x -osrc\out \ffmpeg $localArtifactPath
31
+ & "${env:ProgramFiles(x86)}\7-Zip\7z.exe" x -oout \ffmpeg $localArtifactPath
34
32
displayName : ' Download and extract ffmpeg.zip for test'
35
33
env :
36
34
APPVEYOR_TOKEN : $(APPVEYOR_TOKEN)
37
35
38
36
- powershell : |
39
- $localArtifactPath = "$pwd\src\ node_headers.zip"
37
+ $localArtifactPath = "$pwd\node_headers.zip"
40
38
$serverArtifactPath = "$env:APPVEYOR_URL/buildjobs/$env:APPVEYOR_JOB_ID/artifacts/node_headers.zip"
41
39
Invoke-RestMethod -Method Get -Uri $serverArtifactPath -OutFile $localArtifactPath -Headers @{ "Authorization" = "Bearer $env:APPVEYOR_TOKEN" }
42
- cd src
43
40
& "${env:ProgramFiles(x86)}\7-Zip\7z.exe" x -y node_headers.zip
44
41
displayName : ' Download node headers for test'
45
42
env :
46
43
APPVEYOR_TOKEN : $(APPVEYOR_TOKEN)
47
44
48
45
- powershell : |
49
- $localArtifactPath = "$pwd\src\ out\Default\electron.lib"
46
+ $localArtifactPath = "$pwd\out\Default\electron.lib"
50
47
$serverArtifactPath = "$env:APPVEYOR_URL/buildjobs/$env:APPVEYOR_JOB_ID/artifacts/electron.lib"
51
48
Invoke-RestMethod -Method Get -Uri $serverArtifactPath -OutFile $localArtifactPath -Headers @{ "Authorization" = "Bearer $env:APPVEYOR_TOKEN" }
52
49
displayName : ' Download electron.lib for test'
53
50
env :
54
51
APPVEYOR_TOKEN : $(APPVEYOR_TOKEN)
55
52
56
53
- powershell : |
57
- New-Item src\ out\Default\gen\node_headers\Release -Type directory
58
- Copy-Item -path src\ out\Default\electron.lib -destination src\ out\Default\gen\node_headers\Release\node.lib
54
+ New-Item out\Default\gen\node_headers\Release -Type directory
55
+ Copy-Item -path out\Default\electron.lib -destination out\Default\gen\node_headers\Release\node.lib
59
56
displayName : ' Setup node headers'
60
57
61
58
- script : |
62
- cd src
63
59
set npm_config_nodedir=%cd%\out\Default\gen\node_headers
64
60
set npm_config_arch=arm64
65
61
cd electron
@@ -76,11 +72,10 @@ steps:
76
72
displayName : ' Publish Test Results'
77
73
inputs :
78
74
testResultsFiles : ' *.xml'
79
- searchFolder : ' $(System.DefaultWorkingDirectory)/src/ junit/'
75
+ searchFolder : ' $(System.DefaultWorkingDirectory)/junit/'
80
76
condition : always()
81
77
82
78
- script : |
83
- cd src
84
79
echo "Verifying non proprietary ffmpeg"
85
80
python electron\script\verify-ffmpeg.py --build-dir out\Default --source-root %cd% --ffmpeg-path out\ffmpeg
86
81
displayName : ' Verify ffmpeg'
0 commit comments