2016-11-03 18:06:37 +03:00
|
|
|
image: Visual Studio 2015
|
|
|
|
|
2015-11-11 01:37:01 +03:00
|
|
|
version: "{build}"
|
|
|
|
|
|
|
|
skip_tags: true
|
|
|
|
clone_folder: c:\projects\atom
|
|
|
|
clone_depth: 10
|
|
|
|
|
2017-04-18 19:44:28 +03:00
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
- /^[0-9.]+-releases$/
|
|
|
|
|
2015-11-11 01:37:01 +03:00
|
|
|
platform:
|
2016-10-22 02:47:25 +03:00
|
|
|
- x64
|
2017-04-05 01:34:00 +03:00
|
|
|
- x86
|
2015-11-11 01:37:01 +03:00
|
|
|
|
|
|
|
environment:
|
|
|
|
global:
|
|
|
|
ATOM_DEV_RESOURCE_PATH: c:\projects\atom
|
|
|
|
|
|
|
|
matrix:
|
2016-11-30 08:42:47 +03:00
|
|
|
- NODE_VERSION: 6.8.0
|
2015-11-11 01:37:01 +03:00
|
|
|
|
2017-03-24 03:57:18 +03:00
|
|
|
matrix:
|
|
|
|
fast_finish: true
|
|
|
|
|
2015-11-11 01:37:01 +03:00
|
|
|
install:
|
|
|
|
- SET PATH=C:\Program Files\Atom\resources\cli;%PATH%
|
|
|
|
- ps: Install-Product node $env:NODE_VERSION $env:PLATFORM
|
2016-08-02 15:43:46 +03:00
|
|
|
- npm install -g npm
|
2015-11-11 01:37:01 +03:00
|
|
|
|
|
|
|
build_script:
|
2017-01-18 08:03:08 +03:00
|
|
|
- CD %APPVEYOR_BUILD_FOLDER%
|
|
|
|
- IF [%APPVEYOR_REPO_BRANCH:~-9%]==[-releases] (
|
|
|
|
script\build.cmd --code-sign --create-windows-installer --compress-artifacts
|
|
|
|
) ELSE (
|
2017-04-18 04:11:57 +03:00
|
|
|
script\build.cmd --code-sign --compress-artifacts
|
2017-01-18 08:03:08 +03:00
|
|
|
)
|
2015-11-11 01:37:01 +03:00
|
|
|
|
2016-09-09 13:07:03 +03:00
|
|
|
test_script:
|
2017-02-06 20:49:20 +03:00
|
|
|
- script\lint.cmd
|
2016-09-09 13:07:03 +03:00
|
|
|
- script\test.cmd
|
|
|
|
|
2015-11-11 01:37:01 +03:00
|
|
|
deploy: off
|
|
|
|
artifacts:
|
2016-08-08 17:02:57 +03:00
|
|
|
- path: out\AtomSetup.exe
|
2016-02-03 05:41:49 +03:00
|
|
|
name: AtomSetup.exe
|
2016-08-08 17:02:57 +03:00
|
|
|
- path: out\AtomSetup.msi
|
2016-05-20 00:49:38 +03:00
|
|
|
name: AtomSetup.msi
|
2016-08-09 14:28:59 +03:00
|
|
|
- path: out\atom-windows.zip
|
|
|
|
name: atom-windows.zip
|
2016-08-08 17:02:57 +03:00
|
|
|
- path: out\RELEASES
|
|
|
|
name: RELEASES
|
2016-08-08 17:32:27 +03:00
|
|
|
- path: out\atom-*-delta.nupkg
|
|
|
|
name: atom-delta.nupkg
|
|
|
|
- path: out\atom-*-full.nupkg
|
|
|
|
name: atom-full.nupkg
|
2015-11-11 01:37:01 +03:00
|
|
|
|
|
|
|
cache:
|
2016-08-02 15:04:45 +03:00
|
|
|
- '%APPVEYOR_BUILD_FOLDER%\script\node_modules'
|
2016-07-22 18:53:58 +03:00
|
|
|
- '%APPVEYOR_BUILD_FOLDER%\apm\node_modules'
|
|
|
|
- '%APPVEYOR_BUILD_FOLDER%\node_modules'
|
2016-08-11 13:44:40 +03:00
|
|
|
- '%APPVEYOR_BUILD_FOLDER%\electron'
|
2015-11-11 01:37:01 +03:00
|
|
|
- '%USERPROFILE%\.atom\.apm'
|
2017-03-15 12:38:13 +03:00
|
|
|
- '%USERPROFILE%\.atom\compile-cache'
|
2017-03-10 11:39:14 +03:00
|
|
|
- '%USERPROFILE%\.atom\snapshot-cache'
|