From 6640f05233882761944a44b77a2f0e38d4419cd3 Mon Sep 17 00:00:00 2001 From: Ilya Shipitsin Date: Tue, 27 Nov 2018 01:01:30 +0500 Subject: [PATCH] AppVeyor: renew github token, renamed APPVEYOR_REPO_TAG to upper case, added vpntest.exe to test memory --- .appveyor.yml | 7 +++++-- .ci/appveyor-vpntest.ps1 | 18 ++++++++++++++++++ 2 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 .ci/appveyor-vpntest.ps1 diff --git a/.appveyor.yml b/.appveyor.yml index eb098757..dee0437f 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -44,6 +44,9 @@ for: - configure build_script: - nmake + test_script: + - ps: cd $env:APPVEYOR_BUILD_FOLDER + - ps: .\.ci\appveyor-vpntest.ps1 after_build: - 7z a "%APPVEYOR_BUILD_FOLDER%\build\%APPVEYOR_PROJECT_NAME%_%APPVEYOR_BUILD_VERSION%_Windows_x64_%CONFIGURATION%.zip" "%APPVEYOR_BUILD_FOLDER%\build\*.exe" - 7z a "%APPVEYOR_BUILD_FOLDER%\build\%APPVEYOR_PROJECT_NAME%_%APPVEYOR_BUILD_VERSION%_Windows_x64_%CONFIGURATION%.zip" "%APPVEYOR_BUILD_FOLDER%\build\hamcore.se2" @@ -85,6 +88,6 @@ deploy: description: 'automatic release' provider: GitHub auth_token: - secure: FJU1W6Li4W7h3mYJj206ybyhRvBqdSeiSoFJ4lhCkQl6n92ljSVnZiPKPtaSuP6i + secure: AMFTEsa7hI1osVhKFo+e8ueIWyzP7dITIGVWkhCoOfHEnHaYBzz7acqrJD/qB0H8 on: - appveyor_repo_tag: true + APPVEYOR_REPO_TAG: true diff --git a/.ci/appveyor-vpntest.ps1 b/.ci/appveyor-vpntest.ps1 new file mode 100644 index 00000000..d27d5c1f --- /dev/null +++ b/.ci/appveyor-vpntest.ps1 @@ -0,0 +1,18 @@ +$ErrorActionPreference = 'Stop' + +# ('s', 'c', 'b', 'sm', 'cm') ?? +('s', 'c', 'b') | % { + + [String] $mode = $_ + Write-Host "testing: $mode" + + $t = (Write-Output "q\n" | & .\build\vpntest.exe $mode | Select-String -Pattern 'NO MEMORY LEAKS' -CaseSensitive) + + if( ($t).Count -ne 1){ + Write-Error 'failed' + return $false + }else{ + Write-Host 'ok' + } + +}