build: [gn] fix node header generation target in appveyor (#14218)
* build: [gn] fix node header generation target in appveyor * build: fix tests run on AppVeyor * build: [gn win] copy node.lib to node_headers on appveyor * Fix verify-ffmpeg paths
This commit is contained in:
parent
7a514d26bb
commit
2d1b16b174
1 changed files with 8 additions and 3 deletions
|
@ -35,14 +35,19 @@ build_script:
|
||||||
- ninja -C out/ffmpeg third_party/ffmpeg
|
- ninja -C out/ffmpeg third_party/ffmpeg
|
||||||
- ninja -C out/Default electron:electron_dist_zip
|
- ninja -C out/Default electron:electron_dist_zip
|
||||||
test_script:
|
test_script:
|
||||||
- ninja -C out/Default electron/build/node:headers
|
- ninja -C out/Default third_party/electron_node:headers
|
||||||
- ps: $env:npm_config_nodedir="$pwd/out/Default/gen/node_headers"
|
- ps: $env:npm_config_nodedir="$pwd/out/Default/gen/node_headers"
|
||||||
- ps: $env:npm_config_msvs_version="2017"
|
- ps: $env:npm_config_msvs_version="2017"
|
||||||
|
- ps: >-
|
||||||
|
if ($env:gn_args -eq 'testing') {
|
||||||
|
New-Item .\out\Default\gen\node_headers\Release -Type directory
|
||||||
|
Copy-Item -path .\out\Default\electron.lib -destination .\out\Default\gen\node_headers\Release\node.lib
|
||||||
|
}
|
||||||
- ps: Push-Location; cd electron/spec
|
- ps: Push-Location; cd electron/spec
|
||||||
- npm install
|
- npm install
|
||||||
- ps: Pop-Location
|
- ps: Pop-Location
|
||||||
- ./out/Default/electron.exe electron/spec --ci
|
- .\out\Default\electron.exe electron\spec --ci
|
||||||
- python src\electron\verify-ffmpeg.py -c Default --source-root "%pwd%\src" --ffmpeg-path "%pwd%\src\out\ffmpeg"
|
- python electron\verify-ffmpeg.py -c Default --source-root "%pwd%" --ffmpeg-path "%pwd%\out\ffmpeg"
|
||||||
artifacts:
|
artifacts:
|
||||||
- path: test-results.xml
|
- path: test-results.xml
|
||||||
name: test-results.xml
|
name: test-results.xml
|
||||||
|
|
Loading…
Reference in a new issue