pulsar/appveyor.yml

82 lines
1.9 KiB
YAML
Raw Normal View History

2016-11-03 18:06:37 +03:00
image: Visual Studio 2015
version: "{build}"
skip_tags: true
clone_folder: c:\projects\atom
clone_depth: 10
branches:
only:
- master
- /^[0-9.]+-releases$/
platform:
2016-10-22 02:47:25 +03:00
- x64
2017-04-05 01:34:00 +03:00
- x86
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
NODE_VERSION: 6.9.4
matrix:
- TASK: test
- TASK: installer
matrix:
fast_finish: true
install:
2017-07-29 23:35:24 +03:00
- IF NOT EXIST %TEST_JUNIT_XML_ROOT% MKDIR %TEST_JUNIT_XML_ROOT%
- 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
build_script:
- CD %APPVEYOR_BUILD_FOLDER%
2017-08-09 17:02:24 +03:00
- IF [%TASK%]==[installer] (
SET BUILD_ARG=--create-windows-installer
) ELSE (
SET BUILD_ARG=
)
- script\build.cmd --code-sign --compress-artifacts %BUILD_ARG%
2016-09-09 13:07:03 +03:00
test_script:
2017-08-09 17:02:24 +03:00
- IF [%TASK%]==[test] (
script\lint.cmd &&
script\test.cmd
) ELSE (
2017-08-09 17:02:24 +03:00
ECHO Skipping tests
)
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
- 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
cache:
- '%APPVEYOR_BUILD_FOLDER%\electron'
- '%USERPROFILE%\.atom\.apm'
- '%USERPROFILE%\.atom\compile-cache'
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)
}