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$/
|
2018-05-08 19:46:55 +03:00
|
|
|
- /^electron-[0-9.]+$/
|
2017-04-18 19:44:28 +03:00
|
|
|
|
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
|
2019-02-05 18:29:09 +03:00
|
|
|
ATOM_JASMINE_REPORTER: list
|
2017-07-29 23:35:24 +03:00
|
|
|
TEST_JUNIT_XML_ROOT: c:\projects\junit-test-results
|
2018-07-12 16:58:23 +03:00
|
|
|
NODE_VERSION: 8.9.3
|
2015-11-11 01:37:01 +03:00
|
|
|
|
|
|
|
matrix:
|
2017-08-09 16:18:41 +03:00
|
|
|
- TASK: test
|
|
|
|
- TASK: installer
|
2015-11-11 01:37:01 +03:00
|
|
|
|
2017-03-24 03:57:18 +03:00
|
|
|
matrix:
|
|
|
|
fast_finish: true
|
2017-08-18 00:23:18 +03:00
|
|
|
exclude:
|
|
|
|
- platform: x86
|
|
|
|
TASK: test
|
2017-03-24 03:57:18 +03:00
|
|
|
|
2015-11-11 01:37:01 +03:00
|
|
|
install:
|
2017-07-29 23:35:24 +03:00
|
|
|
- IF NOT EXIST %TEST_JUNIT_XML_ROOT% MKDIR %TEST_JUNIT_XML_ROOT%
|
2015-11-11 01:37:01 +03:00
|
|
|
- SET PATH=C:\Program Files\Atom\resources\cli;%PATH%
|
|
|
|
- ps: Install-Product node $env:NODE_VERSION $env:PLATFORM
|
2018-08-08 16:31:08 +03:00
|
|
|
- npm install --global npm@6.2.0
|
2015-11-11 01:37:01 +03:00
|
|
|
|
|
|
|
build_script:
|
2017-01-18 08:03:08 +03:00
|
|
|
- CD %APPVEYOR_BUILD_FOLDER%
|
2017-08-10 02:04:49 +03:00
|
|
|
- IF NOT EXIST C:\tmp MKDIR C:\tmp
|
|
|
|
- SET SQUIRREL_TEMP=C:\tmp
|
2019-04-10 17:56:17 +03:00
|
|
|
- IF [%APPVEYOR_REPO_BRANCH:~-9%]==[-releases] IF NOT DEFINED APPVEYOR_PULL_REQUEST_NUMBER SET IS_RELEASE_BRANCH=true
|
2018-05-08 19:46:55 +03:00
|
|
|
- IF [%APPVEYOR_REPO_BRANCH%]==[master] IF NOT DEFINED APPVEYOR_PULL_REQUEST_NUMBER SET IS_SIGNED_ZIP_BRANCH=true
|
2019-04-10 18:02:35 +03:00
|
|
|
- IF [%APPVEYOR_REPO_BRANCH:~0,9%]==[electron-] IF NOT DEFINED APPVEYOR_PULL_REQUEST_NUMBER SET IS_SIGNED_ZIP_BRANCH=true
|
2017-08-09 17:02:24 +03:00
|
|
|
- IF [%TASK%]==[installer] (
|
2018-05-08 19:46:55 +03:00
|
|
|
IF [%IS_RELEASE_BRANCH%]==[true] (
|
2018-01-11 02:45:57 +03:00
|
|
|
ECHO Building on release branch - Creating production artifacts &&
|
2018-08-08 17:47:31 +03:00
|
|
|
script\build.cmd --code-sign --compress-artifacts --create-windows-installer
|
2017-08-09 19:18:07 +03:00
|
|
|
) ELSE (
|
2018-05-08 19:46:55 +03:00
|
|
|
IF [%IS_SIGNED_ZIP_BRANCH%]==[true] (
|
|
|
|
ECHO Building on %APPVEYOR_REPO_BRANCH% branch - Creating signed zips &&
|
2018-08-08 17:47:31 +03:00
|
|
|
script\build.cmd --code-sign --compress-artifacts
|
2018-01-11 01:24:43 +03:00
|
|
|
) ELSE (
|
2018-01-11 17:01:59 +03:00
|
|
|
ECHO Skipping installer build for non-release/non-master branch
|
2018-01-11 01:24:43 +03:00
|
|
|
)
|
2017-08-09 19:18:07 +03:00
|
|
|
)
|
2017-08-09 16:28:37 +03:00
|
|
|
) ELSE (
|
2018-01-11 02:45:57 +03:00
|
|
|
ECHO Test build only - Not creating artifacts &&
|
2018-08-08 17:47:31 +03:00
|
|
|
script\build.cmd
|
2017-08-09 20:01:40 +03:00
|
|
|
)
|
2015-11-11 01:37:01 +03:00
|
|
|
|
2016-09-09 13:07:03 +03:00
|
|
|
test_script:
|
2017-08-09 17:02:24 +03:00
|
|
|
- IF [%TASK%]==[test] (
|
|
|
|
script\lint.cmd &&
|
2017-08-09 16:18:41 +03:00
|
|
|
script\test.cmd
|
|
|
|
) ELSE (
|
2017-08-09 20:15:34 +03:00
|
|
|
ECHO Skipping tests on installer build matrix row
|
2017-08-09 16:18:41 +03:00
|
|
|
)
|
2017-07-13 00:17:53 +03:00
|
|
|
|
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-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
|
2018-07-30 21:37:40 +03:00
|
|
|
- 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
|
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-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-08-01 16:37:44 +03:00
|
|
|
|
|
|
|
on_finish:
|
|
|
|
- ps: |
|
|
|
|
$wc = New-Object 'System.Net.WebClient'
|
|
|
|
$endpoint = "https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)"
|
|
|
|
Write-Output "Searching for JUnit XML output beneath $($env:TEST_JUNIT_XML_ROOT)"
|
|
|
|
Get-ChildItem -Path $env:TEST_JUNIT_XML_ROOT -Recurse -File -Name -Include "*.xml" | ForEach-Object {
|
2017-08-01 18:24:31 +03:00
|
|
|
$full = "$($env:TEST_JUNIT_XML_ROOT)\$($_)"
|
|
|
|
Write-Output "Uploading JUnit XML file $($full)"
|
|
|
|
$wc.UploadFile($endpoint, $full)
|
2017-08-01 16:37:44 +03:00
|
|
|
}
|