mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-22 17:39:53 +03:00
Merge pull request #817 from chipitsine/appveyor_pwsh
Merge PR #817: AppVeyor: renew github token, renamed APPVEYOR_REPO_TAG to upper case,
This commit is contained in:
commit
4cbb8a8560
@ -44,6 +44,9 @@ for:
|
|||||||
- configure
|
- configure
|
||||||
build_script:
|
build_script:
|
||||||
- nmake
|
- nmake
|
||||||
|
test_script:
|
||||||
|
- ps: cd $env:APPVEYOR_BUILD_FOLDER
|
||||||
|
- ps: .\.ci\appveyor-vpntest.ps1
|
||||||
after_build:
|
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\*.exe"
|
||||||
- 7z a "%APPVEYOR_BUILD_FOLDER%\build\%APPVEYOR_PROJECT_NAME%_%APPVEYOR_BUILD_VERSION%_Windows_x64_%CONFIGURATION%.zip" "%APPVEYOR_BUILD_FOLDER%\build\hamcore.se2"
|
- 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'
|
description: 'automatic release'
|
||||||
provider: GitHub
|
provider: GitHub
|
||||||
auth_token:
|
auth_token:
|
||||||
secure: FJU1W6Li4W7h3mYJj206ybyhRvBqdSeiSoFJ4lhCkQl6n92ljSVnZiPKPtaSuP6i
|
secure: AMFTEsa7hI1osVhKFo+e8ueIWyzP7dITIGVWkhCoOfHEnHaYBzz7acqrJD/qB0H8
|
||||||
on:
|
on:
|
||||||
appveyor_repo_tag: true
|
APPVEYOR_REPO_TAG: true
|
||||||
|
18
.ci/appveyor-vpntest.ps1
Normal file
18
.ci/appveyor-vpntest.ps1
Normal file
@ -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'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user