2018-07-30 20:25:49 +00:00
|
|
|
version: 1.0.{build}
|
|
|
|
branches:
|
|
|
|
except:
|
|
|
|
- /^release$|^release-\d-\d-x$/
|
|
|
|
build_cloud: libcc-20
|
2018-08-14 16:34:34 +00:00
|
|
|
image: libcc-20-vs2017-15.4.5
|
2018-07-30 20:25:49 +00:00
|
|
|
environment:
|
2018-08-17 16:20:20 +00:00
|
|
|
GIT_CACHE_PATH: C:\Users\electron\libcc_cache
|
2018-07-30 20:25:49 +00:00
|
|
|
DISABLE_CRASH_REPORTER_TESTS: true
|
|
|
|
ELECTRON_ENABLE_LOGGING: true
|
2018-08-01 00:28:32 +00:00
|
|
|
matrix:
|
|
|
|
- gn_args: debug
|
2018-08-01 17:29:35 +00:00
|
|
|
ELECTRON_SKIP_NATIVE_MODULE_TESTS: 1
|
2018-08-16 23:28:01 +00:00
|
|
|
- gn_args: testing
|
2018-08-10 22:52:54 +00:00
|
|
|
platform:
|
|
|
|
- x86
|
|
|
|
- x64
|
2018-07-30 20:25:49 +00:00
|
|
|
build_script:
|
|
|
|
- git config --global core.longpaths true
|
|
|
|
- cd ..
|
|
|
|
- md src
|
|
|
|
- ps: Move-Item $env:APPVEYOR_BUILD_FOLDER -Destination src\electron
|
|
|
|
- ps: $env:CHROMIUM_BUILDTOOLS_PATH="$pwd\src\buildtools"
|
2018-08-21 19:40:06 +00:00
|
|
|
- ps: $env:SCCACHE_PATH="$pwd\src\electron\external_binaries\sccache\sccache.exe"
|
2018-07-30 20:25:49 +00:00
|
|
|
- >-
|
|
|
|
gclient config
|
|
|
|
--name "src\electron"
|
|
|
|
--unmanaged
|
|
|
|
"https://github.com/electron/electron"
|
|
|
|
- gclient sync --with_branch_heads --with_tags
|
|
|
|
- cd src
|
2018-08-21 17:06:28 +00:00
|
|
|
- >-
|
|
|
|
%SCCACHE_PATH% -s
|
|
|
|
- gn gen out/Default "--args=import(\"//electron/build/args/%gn_args%.gn\") cc_wrapper=\"%CC_WRAPPER%\" "
|
2018-07-30 20:25:49 +00:00
|
|
|
- ninja -C out/Default electron:electron_app
|
2018-08-21 17:06:28 +00:00
|
|
|
- ninja -C out/Default electron:electron_dist_zip
|
|
|
|
- >-
|
|
|
|
%SCCACHE_PATH% -s
|
2018-07-30 20:25:49 +00:00
|
|
|
test_script:
|
|
|
|
- ninja -C out/Default electron/build/node:headers
|
|
|
|
- ps: $env:npm_config_nodedir="$pwd/out/Default/gen/node_headers"
|
2018-08-01 17:35:03 +00:00
|
|
|
- ps: $env:npm_config_msvs_version="2017"
|
2018-07-30 20:25:49 +00:00
|
|
|
- ps: Push-Location; cd electron/spec
|
|
|
|
- npm install
|
|
|
|
- ps: Pop-Location
|
2018-08-14 18:31:12 +00:00
|
|
|
- ./out/Default/electron.exe electron/spec --ci
|
2018-07-30 20:25:49 +00:00
|
|
|
# TODO(nornagon): verify-ffmpeg step
|
|
|
|
artifacts:
|
|
|
|
- path: test-results.xml
|
|
|
|
name: test-results.xml
|
2018-08-21 17:06:28 +00:00
|
|
|
- path: src/out/Default/dist.zip
|
|
|
|
name: dist.zip
|