1
+ # The config is used to bake appveyor images, not for running CI jobs.
2
+ # The config expects the following environment variables to be set:
3
+ # - "APPVEYOR_BAKE_IMAGE" e.g. 'electron-99.0.4767.0'. Name of the image to be baked.
4
+ # Typically named after the Chromium version on which the image is built.
5
+ # This can be set dynamically in the prepare-appveyor script.
6
+
7
+ version : 1.0.{build}
8
+ build_cloud : electronhq-16-core
9
+ image : Windows_Default_Appveyor
10
+ environment :
11
+ GIT_CACHE_PATH : C:\Users\appveyor\libcc_cache
12
+ ELECTRON_OUT_DIR : Default
13
+ ELECTRON_ENABLE_STACK_DUMPING : 1
14
+ MOCHA_REPORTER : mocha-multi-reporters
15
+ MOCHA_MULTI_REPORTERS : mocha-appveyor-reporter, tap
16
+ GOMA_FALLBACK_ON_AUTH_FAILURE : true
17
+ DEPOT_TOOLS_WIN_TOOLCHAIN : 0
18
+ PYTHONIOENCODING : UTF-8
19
+ build_script :
20
+ - ps : Resize-Partition -DriveLetter C -Size (256GB) # ensure initial partition size
21
+ - ps : Get-Partition -DriveLetter C
22
+ - git config --global core.longpaths true
23
+ - cd ..
24
+ - mkdir src
25
+ - ps : git clone --depth=1 https://chromium.googlesource.com/chromium/tools/depot_tools.git
26
+ - ps : $env:PATH="$pwd\depot_tools;$env:PATH"
27
+ - update_depot_tools.bat
28
+ - ps : Move-Item $env:APPVEYOR_BUILD_FOLDER -Destination src\electron
29
+ - src\electron\script\setup-win-for-dev.bat
30
+ - >-
31
+ gclient config
32
+ --name "src\electron"
33
+ --unmanaged
34
+ %GCLIENT_EXTRA_ARGS%
35
+ "https://github.com/electron/electron"
36
+ - ps : cd src\electron
37
+ - ps : node script\generate-deps-hash.js
38
+ - ps : $depshash = Get-Content .\.depshash -Raw
39
+ - ps : Copy-Item -path .\.depshash -destination ..\.depshash
40
+ - ps : cd ..\..
41
+ - gclient sync --with_branch_heads --with_tags --nohooks
42
+ - ps : regsvr32 /s "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\DIA SDK\bin\amd64\msdia140.dll"
43
+ on_image_bake :
44
+ - ps : >-
45
+ echo "Baking image: $env:APPVEYOR_BAKE_IMAGE at dir $PWD"
46
+ - ps : Remove-Item -Recurse -Force $pwd\depot_tools
47
+ - ps : Remove-Item -Recurse -Force $pwd\src\electron
48
+ # Uncomment these lines to enable RDP
49
+ # on_finish:
50
+ # - ps: >-
51
+ # $env:APPVEYOR_RDP_PASSWORD = "electron"
52
+ # $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
0 commit comments