2020-10-11 02:24:15 +02:00
|
|
|
version: 7.9.{build}
|
2020-09-06 09:24:24 +02:00
|
|
|
image: Visual Studio 2019
|
2016-02-22 11:46:47 +01:00
|
|
|
|
2018-02-01 23:05:41 +01:00
|
|
|
|
|
|
|
environment:
|
|
|
|
matrix:
|
|
|
|
- platform: Win32
|
|
|
|
archi: x86
|
|
|
|
platform_input: Win32
|
2021-01-02 11:35:32 +01:00
|
|
|
PYTHON: "C:\\Python38"
|
2018-02-01 23:05:41 +01:00
|
|
|
|
|
|
|
- platform: x64
|
|
|
|
archi: amd64
|
|
|
|
platform_input: x64
|
|
|
|
|
|
|
|
- platform: mingw-w64_810_X64
|
|
|
|
platform_input: mingw
|
2016-07-12 09:19:56 +02:00
|
|
|
|
2021-02-28 01:45:09 +01:00
|
|
|
- platform: arm64
|
|
|
|
archi: amd64_arm64
|
|
|
|
platform_input: arm64
|
|
|
|
|
|
|
|
|
2016-07-12 09:19:56 +02:00
|
|
|
configuration:
|
2021-07-27 21:27:24 +02:00
|
|
|
- Release
|
|
|
|
- Debug
|
2016-07-12 09:19:56 +02:00
|
|
|
|
2016-02-22 11:46:47 +01:00
|
|
|
install:
|
2018-02-01 23:05:41 +01:00
|
|
|
- if "%Platform%"=="mingw-w64_810_X64" set PATH=C:\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin;%PATH:C:\Program Files\Git\usr\bin;=%
|
2020-09-06 09:24:24 +02:00
|
|
|
- if "%archi%" NEQ "" call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" %archi%
|
2016-07-12 09:19:56 +02:00
|
|
|
|
2016-02-22 11:46:47 +01:00
|
|
|
build_script:
|
2018-02-01 23:05:41 +01:00
|
|
|
- ps: |
|
|
|
|
Write-Output "Configuration: $env:CONFIGURATION"
|
|
|
|
Write-Output "Platform: $env:PLATFORM"
|
|
|
|
|
2019-05-09 00:12:07 +02:00
|
|
|
- cd "%APPVEYOR_BUILD_FOLDER%"\scintilla\win32
|
2021-07-27 21:27:24 +02:00
|
|
|
#- if "%configuration%"=="Debug" set scintilla_debug=DEBUG=1
|
|
|
|
#- if "%configuration%"=="Release" set scintilla_debug=
|
2021-02-28 01:45:09 +01:00
|
|
|
#- if "%archi%"=="x86" nmake %scintilla_debug% BOOSTPATH=C:\Libraries\boost_1_69_0\ BOOSTREGEXLIBPATH=C:\Libraries\boost_1_69_0\lib32-msvc-14.1\ -f scintilla.mak
|
|
|
|
#- if "%archi%"=="amd64" nmake %scintilla_debug% BOOSTPATH=C:\Libraries\boost_1_69_0\ BOOSTREGEXLIBPATH=C:\Libraries\boost_1_69_0\lib64-msvc-14.1\ -f scintilla.mak
|
|
|
|
- if "%Platform%"=="mingw-w64_810_X64" mingw32-make %scintilla_debug% -j%NUMBER_OF_PROCESSORS%
|
2019-05-09 00:12:07 +02:00
|
|
|
- cd "%APPVEYOR_BUILD_FOLDER%"\PowerEditor\visual.net\
|
2021-02-28 01:45:09 +01:00
|
|
|
- if "%archi%" NEQ "" msbuild /m notepadPlus.sln /p:configuration="%configuration%" /p:platform="%platform_input%" /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
|
|
|
|
- if "%Platform%"=="mingw-w64_810_X64" cd c:\projects\notepad-plus-plus\PowerEditor\gcc\ & mingw32-make %scintilla_debug% -j%NUMBER_OF_PROCESSORS%
|
2018-02-01 23:05:41 +01:00
|
|
|
|
2016-07-12 09:19:56 +02:00
|
|
|
|
|
|
|
after_build:
|
2019-05-09 00:12:07 +02:00
|
|
|
- cd "%APPVEYOR_BUILD_FOLDER%"
|
2021-01-02 11:35:32 +01:00
|
|
|
#xml files syntax checks
|
2021-07-27 21:27:24 +02:00
|
|
|
- if "%platform_input%"=="Win32" if "%configuration%"=="Debug" SET PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%
|
|
|
|
- if "%platform_input%"=="Win32" if "%configuration%"=="Debug" python -m pip install requests rfc3987 pywin32 lxml
|
|
|
|
- if "%platform_input%"=="Win32" if "%configuration%"=="Debug" call python PowerEditor\Test\xmlValidator\validator_xml.py
|
2021-01-02 11:35:32 +01:00
|
|
|
|
2016-07-12 09:19:56 +02:00
|
|
|
- ps: >-
|
2021-07-27 21:27:24 +02:00
|
|
|
if ($env:CONFIGURATION -eq "Release") {
|
2021-02-28 01:45:09 +01:00
|
|
|
$nppFileName = "Notepad++.$env:PLATFORM_INPUT.Release.exe"
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
$nppFileName = "Notepad++.$env:PLATFORM_INPUT.Debug.exe"
|
|
|
|
}
|
2020-08-26 10:01:51 +02:00
|
|
|
|
2021-07-27 21:27:24 +02:00
|
|
|
if ($env:PLATFORM_INPUT -eq "x64" -and $env:CONFIGURATION -eq "Release") {
|
2016-07-12 09:19:56 +02:00
|
|
|
Push-AppveyorArtifact "PowerEditor\bin64\Notepad++.exe" -FileName "$nppFileName"
|
|
|
|
}
|
|
|
|
|
2021-07-27 21:27:24 +02:00
|
|
|
if ($env:PLATFORM_INPUT -eq "x64" -and $env:CONFIGURATION -eq "Debug") {
|
|
|
|
Push-AppveyorArtifact "PowerEditor\visual.net\x64\Debug\Notepad++.exe" -FileName "$nppFileName"
|
2016-07-12 09:19:56 +02:00
|
|
|
}
|
|
|
|
|
2021-07-27 21:27:24 +02:00
|
|
|
if ($env:PLATFORM_INPUT -eq "Win32" -and $env:CONFIGURATION -eq "Release") {
|
2016-07-12 09:19:56 +02:00
|
|
|
Push-AppveyorArtifact "PowerEditor\bin\Notepad++.exe" -FileName "$nppFileName"
|
|
|
|
}
|
|
|
|
|
2021-07-27 21:27:24 +02:00
|
|
|
if ($env:PLATFORM_INPUT -eq "Win32" -and $env:CONFIGURATION -eq "Debug") {
|
|
|
|
Push-AppveyorArtifact "PowerEditor\visual.net\Debug\Notepad++.exe" -FileName "$nppFileName"
|
2020-08-26 10:01:51 +02:00
|
|
|
|
2021-07-27 21:27:24 +02:00
|
|
|
Copy-Item "$env:APPVEYOR_BUILD_FOLDER\PowerEditor\visual.net\Debug\Notepad++.exe" -Destination "$env:APPVEYOR_BUILD_FOLDER\PowerEditor\bin"
|
2020-08-26 10:01:51 +02:00
|
|
|
Copy-Item "$env:APPVEYOR_BUILD_FOLDER\PowerEditor\src\langs.model.xml" -Destination "$env:APPVEYOR_BUILD_FOLDER\PowerEditor\bin"
|
|
|
|
Copy-Item "$env:APPVEYOR_BUILD_FOLDER\PowerEditor\src\stylers.model.xml" -Destination "$env:APPVEYOR_BUILD_FOLDER\PowerEditor\bin"
|
|
|
|
Copy-Item "$env:APPVEYOR_BUILD_FOLDER\PowerEditor\src\shortcuts.xml" -Destination "$env:APPVEYOR_BUILD_FOLDER\PowerEditor\bin"
|
|
|
|
Copy-Item "$env:APPVEYOR_BUILD_FOLDER\PowerEditor\src\contextMenu.xml" -Destination "$env:APPVEYOR_BUILD_FOLDER\PowerEditor\bin"
|
2020-10-11 02:24:15 +02:00
|
|
|
Copy-Item "$env:APPVEYOR_BUILD_FOLDER\PowerEditor\installer\functionList" -Destination "$env:APPVEYOR_BUILD_FOLDER\PowerEditor\bin" -Recurse
|
2021-07-05 15:49:48 +02:00
|
|
|
|
|
|
|
Copy-Item "$env:APPVEYOR_BUILD_FOLDER\PowerEditor\installer\filesForTesting\regexGlobalTest.xml" -Destination "$env:APPVEYOR_BUILD_FOLDER\PowerEditor\bin\functionList"
|
|
|
|
Copy-Item "$env:APPVEYOR_BUILD_FOLDER\PowerEditor\installer\filesForTesting\overrideMap.xml" -Destination "$env:APPVEYOR_BUILD_FOLDER\PowerEditor\bin\functionList"
|
|
|
|
|
2020-08-26 10:01:51 +02:00
|
|
|
cd .\PowerEditor\Test\FunctionList\
|
|
|
|
.\unitTestLauncher.ps1
|
2021-07-05 15:49:48 +02:00
|
|
|
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
|
|
|
|
|
2020-08-26 10:01:51 +02:00
|
|
|
#ATTENTION: current working dir is no longer at APPVEYOR_BUILD_FOLDER
|
2020-10-25 17:52:46 +01:00
|
|
|
cd ..\UrlDetection
|
|
|
|
.\verifyUrlDetection.ps1
|
2016-07-12 09:19:56 +02:00
|
|
|
}
|
2016-03-25 13:18:31 +01:00
|
|
|
|
2021-07-27 21:27:24 +02:00
|
|
|
if ($env:PLATFORM_INPUT -eq "arm64" -and $env:CONFIGURATION -eq "Release") {
|
2021-02-28 01:45:09 +01:00
|
|
|
Push-AppveyorArtifact "PowerEditor\binarm64\Notepad++.exe" -FileName "$nppFileName"
|
|
|
|
}
|
|
|
|
|
2021-07-27 21:27:24 +02:00
|
|
|
if ($env:PLATFORM_INPUT -eq "arm64" -and $env:CONFIGURATION -eq "Debug") {
|
|
|
|
Push-AppveyorArtifact "PowerEditor\visual.net\arm64\Debug\Notepad++.exe" -FileName "$nppFileName"
|
2021-02-28 01:45:09 +01:00
|
|
|
}
|
|
|
|
|
2018-02-01 23:05:41 +01:00
|
|
|
if ($env:PLATFORM_INPUT -eq "mingw") {
|
|
|
|
Push-AppveyorArtifact "PowerEditor\bin\NotepadPP.exe" -FileName "$nppFileName"
|
|
|
|
Push-AppveyorArtifact "PowerEditor\bin\NotepadPP.exe_dynamic" -FileName "$nppFileName_dynamic"
|
|
|
|
}
|
|
|
|
|
2020-08-26 10:01:51 +02:00
|
|
|
|