tesseract/appveyor.yml

48 lines
1.6 KiB
YAML
Raw Normal View History

2018-05-30 00:19:12 +08:00
environment:
matrix:
# does not work with sw at the moment
2019-01-16 02:46:35 +08:00
#- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
#platform: Win32
2020-09-10 20:40:07 +08:00
#- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
#platform: Win32
#- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
#platform: Win64
2020-09-10 20:40:07 +08:00
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
platform: Win64
2015-09-07 03:30:11 +08:00
configuration:
2016-01-14 19:02:48 +08:00
- Release
2018-07-10 21:46:42 +08:00
cache:
2019-02-03 21:12:28 +08:00
- c:/Users/appveyor/.sw -> appveyor.yml
2016-12-15 22:00:58 +08:00
before_build:
2021-01-03 07:59:43 +08:00
- git submodule update --init --recursive
2019-01-20 20:59:55 +08:00
- curl -fsS -L -o dl.zip https://github.com/SoftwareNetwork/binaries/raw/master/sw-master-windows-client.zip
2019-01-09 04:33:34 +08:00
- 7z x dl.zip
- set PATH=%PATH%;%cd%
build_script:
- sw -version
2021-01-03 07:47:51 +08:00
# -show-output - show command output
2021-01-01 03:27:06 +08:00
# debug build causes long builds (> 1h), appveyor drops them
2021-01-03 07:47:51 +08:00
- sw -platform %platform% -config r build -Dwith-tests=1
2021-01-02 21:49:38 +08:00
# test
2021-01-03 03:24:27 +08:00
- git clone https://github.com/egorpugin/tessdata tessdata_unittest
2021-01-06 02:23:35 +08:00
- ps: Copy-Item -Path "tessdata_unittest\fonts\*" -Destination "test\testing" -Recurse
2021-01-03 14:23:30 +08:00
- sw -platform %platform% -config r test -Dwith-tests=1 -Dskip-tests=lstm,lstm_recode
2021-01-02 21:48:18 +08:00
2019-01-09 04:33:34 +08:00
after_build:
2019-07-16 13:12:41 +08:00
- 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
2016-12-21 18:18:03 +08:00
2021-01-03 04:49:03 +08:00
on_finish:
2021-01-03 03:24:27 +08:00
# gather tests
2021-01-03 04:49:03 +08:00
- ps: $wc = New-Object 'System.Net.WebClient'
2021-01-03 05:31:51 +08:00
- ps: $wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\.sw\test\results.xml))
2021-01-03 03:24:27 +08:00
2016-12-21 18:18:03 +08:00
artifacts:
2019-01-09 04:33:34 +08:00
- path: tesseract.zip
2016-12-21 18:44:08 +08:00
name: tesseract-$(APPVEYOR_BUILD_VERSION)
2019-07-14 01:17:15 +08:00