2018-05-30 00:19:12 +08:00
|
|
|
environment:
|
|
|
|
matrix:
|
2019-07-19 21:00:19 +08:00
|
|
|
# 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
|
2019-07-19 21:00:19 +08:00
|
|
|
#platform: Win64
|
2020-09-10 20:40:07 +08:00
|
|
|
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
|
|
|
|
platform: Win64
|
2017-09-17 00:47:04 +08:00
|
|
|
|
2015-09-07 03:30:11 +08:00
|
|
|
configuration:
|
2016-01-14 19:02:48 +08:00
|
|
|
- Release
|
2017-09-17 00:47:04 +08:00
|
|
|
|
2018-07-10 21:46:42 +08:00
|
|
|
cache:
|
2019-02-03 21:12:28 +08:00
|
|
|
- c:/Users/appveyor/.sw -> appveyor.yml
|
2018-12-18 23:33:56 +08:00
|
|
|
|
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
|
2016-09-26 18:12:59 +08:00
|
|
|
- set PATH=%PATH%;%cd%
|
2016-12-15 21:04:18 +08:00
|
|
|
|
2018-12-18 23:33:56 +08:00
|
|
|
build_script:
|
2019-07-14 13:44:58 +08:00
|
|
|
- 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-03 07:47:51 +08:00
|
|
|
- sw -platform %platform% -config r test -Dwith-tests=1 -Dskip-tests=lstm,lstm_.*
|
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
|
2019-07-16 12:51:31 +08:00
|
|
|
#- 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
|
|
|
|