2018-04-20 00:27:12 +03:00
version : '{build}'
2018-09-22 22:07:07 +03:00
image :
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
2019-03-11 20:43:35 +03:00
- .azure-pipelines.yml
2019-04-02 09:16:36 +03:00
- .cirrus.yml
2018-12-01 21:19:18 +03:00
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 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 :
2020-07-20 21:33:36 +03:00
- make package -C build -j $(nproc || sysctl -n hw.ncpu || echo 4)
2018-11-28 00:33:52 +03:00
test_script :
- .ci/appveyor-deb-install-test.sh
2019-01-06 14:53:42 +03:00
- sudo apt-get update && sudo apt-get -y install autoconf libtool liblzo2-dev libpam-dev fping unzip # openvpn build deps
- sudo .ci/start-se-openvpn.sh
- sudo .ci/run-openvpn-tests.sh
2018-10-24 19:16:43 +03:00
-
matrix :
only :
- image : Ubuntu1804
before_build :
2019-07-08 10:09:58 +03:00
- sh : "if [ ${APPVEYOR_REPO_TAG} == \"true\" ]; then .ci/appveyor-create-release-tarball.sh\nfi"
2018-10-24 19:16:43 +03:00
- ./configure
build_script :
2020-07-20 21:33:36 +03:00
- make package -C build -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
2019-01-06 14:53:42 +03:00
- sudo apt-get update && sudo apt-get -y install autoconf libtool liblzo2-dev libpam-dev fping unzip # openvpn build deps
- sudo .ci/start-se-openvpn.sh
- sudo .ci/run-openvpn-tests.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