Permalink
Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign up| image: Visual Studio 2015 | |
| version: "{build}" | |
| skip_tags: true | |
| clone_folder: c:\projects\atom | |
| clone_depth: 10 | |
| branches: | |
| only: | |
| - master | |
| - /^[0-9.]+-releases$/ | |
| - /^electron-[0-9.]+$/ | |
| platform: | |
| - x64 | |
| - x86 | |
| environment: | |
| global: | |
| ATOM_DEV_RESOURCE_PATH: c:\projects\atom | |
| ATOM_JASMINE_REPORTER: list | |
| CI: true | |
| NODE_VERSION: 8.9.3 | |
| matrix: | |
| - TASK: test | |
| - TASK: installer | |
| matrix: | |
| fast_finish: true | |
| exclude: | |
| - platform: x86 | |
| TASK: test | |
| install: | |
| - SET PATH=C:\Program Files\Atom\resources\cli;%PATH% | |
| - ps: Install-Product node $env:NODE_VERSION $env:PLATFORM | |
| - npm install --global npm@6.2.0 | |
| build_script: | |
| - CD %APPVEYOR_BUILD_FOLDER% | |
| - IF NOT EXIST C:\tmp MKDIR C:\tmp | |
| - SET SQUIRREL_TEMP=C:\tmp | |
| - IF [%APPVEYOR_REPO_BRANCH:~-9%]==[-releases] IF NOT DEFINED APPVEYOR_PULL_REQUEST_NUMBER SET IS_RELEASE_BRANCH=true | |
| - IF [%APPVEYOR_REPO_BRANCH%]==[master] IF NOT DEFINED APPVEYOR_PULL_REQUEST_NUMBER SET IS_SIGNED_ZIP_BRANCH=true | |
| - IF [%APPVEYOR_REPO_BRANCH:~0,9%]==[electron-] IF NOT DEFINED APPVEYOR_PULL_REQUEST_NUMBER SET IS_SIGNED_ZIP_BRANCH=true | |
| - IF [%TASK%]==[installer] ( | |
| IF [%IS_RELEASE_BRANCH%]==[true] ( | |
| ECHO Building on release branch - Creating production artifacts && | |
| script\build.cmd --code-sign --compress-artifacts --create-windows-installer | |
| ) ELSE ( | |
| IF [%IS_SIGNED_ZIP_BRANCH%]==[true] ( | |
| ECHO Building on %APPVEYOR_REPO_BRANCH% branch - Creating signed zips && | |
| script\build.cmd --code-sign --compress-artifacts | |
| ) ELSE ( | |
| ECHO Skipping installer build for non-release/non-master branch | |
| ) | |
| ) | |
| ) ELSE ( | |
| ECHO Test build only - Not creating artifacts && | |
| script\build.cmd | |
| ) | |
| test_script: | |
| - IF [%TASK%]==[test] ( | |
| script\lint.cmd && | |
| script\test.cmd | |
| ) ELSE ( | |
| ECHO Skipping tests on installer build matrix row | |
| ) | |
| deploy: off | |
| artifacts: | |
| - path: out\AtomSetup.exe | |
| name: AtomSetup.exe | |
| - path: out\atom-windows.zip | |
| name: atom-windows.zip | |
| - path: out\RELEASES | |
| name: RELEASES | |
| - path: out\AtomSetup-x64.exe | |
| name: AtomSetup-x64.exe | |
| - path: out\atom-x64-windows.zip | |
| name: atom-x64-windows.zip | |
| - path: out\RELEASES-x64 | |
| name: RELEASES-x64 | |
| - path: out\atom-*-delta.nupkg | |
| name: atom-delta.nupkg | |
| - path: out\atom-*-full.nupkg | |
| name: atom-full.nupkg | |
| cache: | |
| - '%APPVEYOR_BUILD_FOLDER%\electron' | |
| - '%USERPROFILE%\.atom\.apm' | |
| - '%USERPROFILE%\.atom\compile-cache' |