2022-01-05 00:07:50 +01:00
|
|
|
version: 8.2.{build}
|
2020-09-06 09:24:24 +02:00
|
|
|
image: Visual Studio 2019
|
2016-02-22 11:46:47 +01:00
|
|
|
|
2021-09-04 21:29:29 +02:00
|
|
|
#skip_commits:
|
|
|
|
# files:
|
|
|
|
# - PowerEditor/bin/*/*.xml
|
|
|
|
# - PowerEditor/installer/*/*.xml
|
2018-02-01 23:05:41 +01:00
|
|
|
|
|
|
|
environment:
|
|
|
|
matrix:
|
2021-09-04 21:29:29 +02:00
|
|
|
- compiler: MSC
|
|
|
|
platform: Win32
|
2018-02-01 23:05:41 +01:00
|
|
|
|
2021-09-04 21:29:29 +02:00
|
|
|
- compiler: MSC
|
|
|
|
platform: x64
|
2018-02-01 23:05:41 +01:00
|
|
|
|
2021-09-04 21:29:29 +02:00
|
|
|
- compiler: MSC
|
|
|
|
platform: arm64
|
2016-07-12 09:19:56 +02:00
|
|
|
|
2021-09-04 21:29:29 +02:00
|
|
|
- compiler: GCC
|
|
|
|
platform: i686
|
2021-02-28 01:45:09 +01:00
|
|
|
|
2021-09-04 21:29:29 +02:00
|
|
|
- compiler: GCC
|
|
|
|
platform: x86_64
|
2021-02-28 01:45:09 +01:00
|
|
|
|
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
|
|
|
|
2021-09-04 21:29:29 +02:00
|
|
|
matrix:
|
|
|
|
exclude:
|
|
|
|
- compiler: GCC
|
|
|
|
configuration: Debug
|
2016-07-12 09:19:56 +02:00
|
|
|
|
2021-09-04 21:29:29 +02:00
|
|
|
before_build:
|
2018-02-01 23:05:41 +01:00
|
|
|
- ps: |
|
2021-09-04 21:29:29 +02:00
|
|
|
Write-Output "Compiler : $env:compiler"
|
|
|
|
Write-Output "Platform : $env:platform"
|
|
|
|
Write-Output "Configuration : $env:configuration"
|
|
|
|
|
|
|
|
for:
|
|
|
|
- matrix:
|
|
|
|
only:
|
|
|
|
- compiler: MSC
|
|
|
|
build:
|
|
|
|
parallel: true
|
|
|
|
project: PowerEditor\visual.net\notepadPlus.sln
|
|
|
|
after_build:
|
|
|
|
# artifacts
|
|
|
|
- ps: |
|
|
|
|
$nppFileName = "Notepad++.$env:platform.$env:configuration.exe"
|
|
|
|
if ("$env:platform/$env:configuration" -eq "Win32/Release") {
|
|
|
|
Push-AppveyorArtifact "PowerEditor\bin\Notepad++.exe" -FileName "$nppFileName"
|
2021-02-28 01:45:09 +01:00
|
|
|
}
|
2021-09-04 21:29:29 +02:00
|
|
|
if ("$env:platform/$env:configuration" -eq "Win32/Debug") {
|
|
|
|
Push-AppveyorArtifact "PowerEditor\visual.net\Debug\Notepad++.exe" -FileName "$nppFileName"
|
2021-02-28 01:45:09 +01:00
|
|
|
}
|
2021-09-04 21:29:29 +02:00
|
|
|
if ("$env:platform/$env:configuration" -eq "x64/Release") {
|
2016-07-12 09:19:56 +02:00
|
|
|
Push-AppveyorArtifact "PowerEditor\bin64\Notepad++.exe" -FileName "$nppFileName"
|
|
|
|
}
|
2021-09-04 21:29:29 +02:00
|
|
|
if ("$env:platform/$env:configuration" -eq "x64/Debug") {
|
2021-07-27 21:27:24 +02:00
|
|
|
Push-AppveyorArtifact "PowerEditor\visual.net\x64\Debug\Notepad++.exe" -FileName "$nppFileName"
|
2016-07-12 09:19:56 +02:00
|
|
|
}
|
2021-09-04 21:29:29 +02:00
|
|
|
if ("$env:platform/$env:configuration" -eq "arm64/Release") {
|
|
|
|
Push-AppveyorArtifact "PowerEditor\binarm64\Notepad++.exe" -FileName "$nppFileName"
|
2016-07-12 09:19:56 +02:00
|
|
|
}
|
2021-09-04 21:29:29 +02:00
|
|
|
if ("$env:platform/$env:configuration" -eq "arm64/Debug") {
|
|
|
|
Push-AppveyorArtifact "PowerEditor\visual.net\arm64\Debug\Notepad++.exe" -FileName "$nppFileName"
|
|
|
|
}
|
|
|
|
# xml files syntax checks
|
|
|
|
- if "%platform%/%configuration%" EQU "Win32/Debug" set PATH=C:\Python38;C:\Python38\Scripts;%PATH%
|
|
|
|
- if "%platform%/%configuration%" EQU "Win32/Debug" python -m pip install requests rfc3987 pywin32 lxml
|
|
|
|
- if "%platform%/%configuration%" EQU "Win32/Debug" python PowerEditor\Test\xmlValidator\validator_xml.py
|
|
|
|
# tests
|
|
|
|
- ps: |
|
|
|
|
if ("$env:platform/$env:configuration" -eq "Win32/Debug") {
|
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-08-07 20:56:14 +02:00
|
|
|
|
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) }
|
2021-08-07 20:56:14 +02:00
|
|
|
|
2020-10-25 17:52:46 +01:00
|
|
|
cd ..\UrlDetection
|
|
|
|
.\verifyUrlDetection.ps1
|
2016-03-25 13:18:31 +01:00
|
|
|
|
2021-09-04 21:29:29 +02:00
|
|
|
cd "$env:APPVEYOR_BUILD_FOLDER"
|
2021-02-28 01:45:09 +01:00
|
|
|
}
|
|
|
|
|
2021-09-04 21:29:29 +02:00
|
|
|
- matrix:
|
|
|
|
only:
|
|
|
|
- compiler: GCC
|
|
|
|
install:
|
|
|
|
- if "%platform%" EQU "i686" set PATH=C:\mingw-w64\i686-8.1.0-posix-dwarf-rt_v6-rev0\mingw32\bin;%PATH:C:\Program Files\Git\usr\bin;=%
|
|
|
|
- if "%platform%" EQU "x86_64" set PATH=C:\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin;%PATH:C:\Program Files\Git\usr\bin;=%
|
|
|
|
build_script:
|
|
|
|
- mingw32-make -f PowerEditor\gcc\makefile
|
|
|
|
after_build:
|
|
|
|
# artifacts
|
|
|
|
- ps: |
|
|
|
|
$nppFileName = "Notepad++.$env:compiler.$env:platform.$env:configuration.exe"
|
|
|
|
if ("$env:platform/$env:configuration" -eq "i686/Release") {
|
|
|
|
Push-AppveyorArtifact "bin.i686\notepad++.exe" -FileName "$nppFileName"
|
2018-02-01 23:05:41 +01:00
|
|
|
}
|
2021-09-04 21:29:29 +02:00
|
|
|
if ("$env:platform/$env:configuration" -eq "x86_64/Release") {
|
|
|
|
Push-AppveyorArtifact "bin.x86_64\notepad++.exe" -FileName "$nppFileName"
|
2021-08-07 20:56:14 +02:00
|
|
|
}
|