2018-04-20 00:27:12 +03:00
version : '{build}'
2018-09-22 22:07:07 +03:00
image :
- Visual Studio 2015
2018-10-24 19:16:43 +03:00
- Visual Studio 2017
2018-09-22 22:07:07 +03:00
- Ubuntu1604
- Ubuntu1804
2018-04-20 00:27:12 +03:00
2018-10-24 19:16:43 +03:00
configuration : Release
2018-04-20 00:27:12 +03:00
2018-10-24 19:16:43 +03:00
skip_branch_with_pr : true
2018-04-20 00:27:12 +03:00
clone_depth : 1
2018-12-01 21:19:18 +03:00
skip_commits :
files :
- .travis.yml
- .gitlab-ci.yml
2018-04-20 00:27:12 +03:00
init :
2018-09-22 22:07:07 +03:00
- ps : Update-AppveyorBuild -Version "build-$env:APPVEYOR_BUILD_NUMBER-$($env:APPVEYOR_REPO_COMMIT.substring(0,7))"
install : git submodule update --init --recursive
2018-04-20 00:27:12 +03:00
2018-10-24 19:16:43 +03:00
for :
-
matrix :
only :
- image : Visual Studio 2015
build_script :
- src\BuildAll.cmd
- exit %errorlevel%
2018-11-18 06:06:19 +03:00
after_build :
2018-11-29 20:11:47 +03:00
- 7z a "%APPVEYOR_BUILD_FOLDER%\%APPVEYOR_PROJECT_NAME%_%APPVEYOR_BUILD_VERSION%_Windows_x86_%CONFIGURATION%_PDBs-vs2015.zip" "%APPVEYOR_BUILD_FOLDER%\src\DebugFiles\pdb\Win32_Release\*.pdb"
- 7z a "%APPVEYOR_BUILD_FOLDER%\%APPVEYOR_PROJECT_NAME%_%APPVEYOR_BUILD_VERSION%_Windows_x64_%CONFIGURATION%_PDBs-vs2015.zip" "%APPVEYOR_BUILD_FOLDER%\src\DebugFiles\pdb\x64_Release\*.pdb"
2018-10-24 19:16:43 +03:00
artifacts :
- path : output\pkg\*\*
2018-11-18 06:06:19 +03:00
name : Release
2018-11-29 20:11:47 +03:00
- path : "%APPVEYOR_PROJECT_NAME%_%APPVEYOR_BUILD_VERSION%_Windows_x86_%CONFIGURATION%_PDBs-vs2015.zip"
2018-11-18 06:06:19 +03:00
name : PDBs (x86)
2018-11-29 20:11:47 +03:00
- path : "%APPVEYOR_PROJECT_NAME%_%APPVEYOR_BUILD_VERSION%_Windows_x64_%CONFIGURATION%_PDBs-vs2015.zip"
2018-11-18 06:06:19 +03:00
name : PDBs (x64)
2018-10-24 19:16:43 +03:00
-
matrix :
only :
- image : Visual Studio 2017
init :
- call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
before_build :
- configure
build_script :
- nmake
2018-11-26 23:01:30 +03:00
test_script :
- ps : cd $env:APPVEYOR_BUILD_FOLDER
- ps : .\.ci\appveyor-vpntest.ps1
2018-10-24 19:16:43 +03:00
after_build :
2018-11-29 20:11:47 +03:00
- 7z a "%APPVEYOR_BUILD_FOLDER%\%APPVEYOR_PROJECT_NAME%_%APPVEYOR_BUILD_VERSION%_Windows_x64_%CONFIGURATION%-vs2017.zip" "%APPVEYOR_BUILD_FOLDER%\build\*.exe"
- 7z a "%APPVEYOR_BUILD_FOLDER%\%APPVEYOR_PROJECT_NAME%_%APPVEYOR_BUILD_VERSION%_Windows_x64_%CONFIGURATION%-vs2017.zip" "%APPVEYOR_BUILD_FOLDER%\build\hamcore.se2"
- 7z a "%APPVEYOR_BUILD_FOLDER%\%APPVEYOR_PROJECT_NAME%_%APPVEYOR_BUILD_VERSION%_Windows_x64_%CONFIGURATION%_PDBs-vs2017.zip" "%APPVEYOR_BUILD_FOLDER%\build\*.pdb"
2018-10-24 19:16:43 +03:00
artifacts :
2018-11-29 20:11:47 +03:00
- path : "%APPVEYOR_PROJECT_NAME%_%APPVEYOR_BUILD_VERSION%_Windows_x64_%CONFIGURATION%-vs2017.zip"
2018-11-18 06:06:19 +03:00
name : Release
2018-11-29 20:11:47 +03:00
- path : "%APPVEYOR_PROJECT_NAME%_%APPVEYOR_BUILD_VERSION%_Windows_x64_%CONFIGURATION%_PDBs-vs2017.zip"
2018-11-18 06:06:19 +03:00
name : PDBs
2018-10-24 19:16:43 +03:00
-
matrix :
only :
- image : Ubuntu1604
before_build :
- ./configure
build_script :
2018-11-03 21:51:09 +03:00
- make package -C tmp -j $(nproc || sysctl -n hw.ncpu || echo 4)
2018-11-28 00:33:52 +03:00
test_script :
- .ci/appveyor-deb-install-test.sh
2018-10-24 19:16:43 +03:00
-
matrix :
only :
- image : Ubuntu1804
before_build :
2018-12-01 21:19:18 +03:00
- sh : "if [ ${APPVEYOR_REPO_TAG} == \"true\" ]; then tar --exclude=.git -czf /tmp/${APPVEYOR_REPO_TAG_NAME}.tar.gz . && appveyor PushArtifact /tmp/${APPVEYOR_REPO_TAG_NAME}.tar.gz \nfi"
2018-10-24 19:16:43 +03:00
- ./configure
build_script :
2018-11-03 21:51:09 +03:00
- make package -C tmp -j $(nproc || sysctl -n hw.ncpu || echo 4)
2018-10-29 13:53:42 +03:00
- .ci/memory-leak-test.sh
2018-11-28 00:33:52 +03:00
test_script :
- .ci/appveyor-deb-install-test.sh
2018-11-08 22:20:08 +03:00
deploy :
description : 'automatic release'
provider : GitHub
2018-11-29 20:11:47 +03:00
auth_token : $(github_token)
2018-11-08 22:20:08 +03:00
on :
2018-11-26 23:01:30 +03:00
APPVEYOR_REPO_TAG : true