tesseract/appveyor.yml

56 lines
1.8 KiB
YAML
Raw Normal View History

2022-06-23 10:15:07 +08:00
environment:
matrix:
# does not work with sw at the moment
#- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
#platform: Win32
2024-04-24 17:51:26 +08:00
#- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
#platform: Win32
#- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
2022-06-23 10:15:07 +08:00
#platform: Win64
2024-04-24 17:51:26 +08:00
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
platform: Win64
2022-06-23 10:15:07 +08:00
configuration:
- Release
cache:
- c:/Users/appveyor/.sw -> appveyor.yml
2024-04-24 17:51:26 +08:00
only_commits:
files:
- appveyor.yml
- '**.cpp'
- '**.h'
- 'unittest/**.c'
- 'unittest/**.cc'
2022-06-23 10:15:07 +08:00
before_build:
2024-04-24 17:51:26 +08:00
- git submodule update --init --recursive
2022-06-23 10:15:07 +08:00
- curl -fsS -L -o dl.zip https://github.com/SoftwareNetwork/binaries/raw/master/sw-master-windows-client.zip
- 7z x dl.zip
- set PATH=%PATH%;%cd%
build_script:
- sw -version
2024-04-24 17:51:26 +08:00
# -show-output - show command output
# debug build causes long builds (> 1h), appveyor drops them
- sw -platform %platform% -config r build -Dwith-tests=1
# test
- git clone https://github.com/egorpugin/tessdata tessdata_unittest
- ps: Copy-Item -Path "tessdata_unittest\fonts\*" -Destination "test\testing" -Recurse
- sw -platform %platform% -config r test -Dwith-tests=1 -Dskip-tests=lstm,lstm_recode
2022-06-23 10:15:07 +08:00
after_build:
- 7z a tesseract.zip %APPVEYOR_BUILD_FOLDER%\.sw\out\**\*.exe %APPVEYOR_BUILD_FOLDER%\.sw\out\**\*.dll
#- 7z a tesseract.zip %APPVEYOR_BUILD_FOLDER%\.sw\Windows_*_Shared_Release_MSVC_*\*.exe %APPVEYOR_BUILD_FOLDER%\.sw\Windows_*_Shared_Release_MSVC_*\*.dll
2024-04-24 17:51:26 +08:00
on_finish:
# gather tests
- ps: $wc = New-Object 'System.Net.WebClient'
- ps: $wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\.sw\test\results.xml))
2022-06-23 10:15:07 +08:00
artifacts:
- path: tesseract.zip
name: tesseract-$(APPVEYOR_BUILD_VERSION)