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
|
2017-07-29 23:35:24 +03:00
|
|
|
TEST_JUNIT_XML_ROOT: c:\projects\junit-test-results
|
2017-08-09 16:18:41 +03:00
|
|
|
NODE_VERSION: 6.9.4
|
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
|
|
|
|
|
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
|
2017-07-16 15:19:39 +03:00
|
|
|
- npm install -g npm@5.3.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-09 17:02:24 +03:00
|
|
|
- IF [%TASK%]==[installer] (
|
2017-08-09 16:28:37 +03:00
|
|
|
SET BUILD_ARG=--create-windows-installer
|
|
|
|
) ELSE (
|
|
|
|
SET BUILD_ARG=
|
|
|
|
)
|
2017-08-09 16:18:41 +03:00
|
|
|
- script\build.cmd --code-sign --compress-artifacts %BUILD_ARG%
|
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 17:02:24 +03:00
|
|
|
ECHO Skipping tests
|
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
|
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
|
|
|
}
|