[ci] Copy fonts to testdir.

This commit is contained in:
Egor Pugin 2021-01-05 21:23:35 +03:00
parent e6b00e6579
commit db86fdd3e7
2 changed files with 5 additions and 2 deletions

View File

@ -26,8 +26,10 @@ jobs:
- name: download test data
if: matrix.os != 'windows-latest'
run: git clone https://github.com/egorpugin/tessdata tessdata_unittest
run:
- git clone https://github.com/egorpugin/tessdata tessdata_unittest
- cp tessdata_unittest/fonts/* test/testing/
- name: test
if: matrix.os != 'windows-latest'
run: ./sw -static -shared -config "d,r" test -Dwith-tests=1 "-Dskip-tests=lstm,lstm_recode"

View File

@ -29,6 +29,7 @@ build_script:
- 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
after_build: