Skip to content
Permalink
Browse files
create 'run-test-ci', adapt travis/circle to use it
  • Loading branch information
kba committed May 7, 2017
1 parent 39ccd43 commit 5c75140760edbb5150ebcc9bf84936d25640f992
Showing 4 changed files with 15 additions and 4 deletions.
@@ -45,4 +45,4 @@ install:
script:
- mkdir ../test_folder
- cd ../test_folder
- ../ocropy/run-test
- ../ocropy/run-test-ci
@@ -14,4 +14,4 @@ dependencies:
- models
test:
override:
- PATH=$PWD:$PATH ./run-test
- PATH=$PWD:$PATH ./run-test-ci
@@ -5,8 +5,8 @@ BASE=$(dirname $0)
rm -rf temp
ocropus-nlbin $BASE/tests/testpage.png -o temp
ocropus-gpageseg 'temp/????.bin.png'
ocropus-rpred --parallel=0 --nocheck 'temp/0001/01000?.bin.png'
ocropus-hocr 'temp/????.bin.png' -o temp.html 2>/dev/null
ocropus-rpred -n 'temp/????/??????.bin.png'
ocropus-hocr 'temp/????.bin.png' -o temp.html
ocropus-visualize-results temp
ocropus-gtedit html temp/????/??????.bin.png -o temp-correction.html

@@ -0,0 +1,11 @@
#!/bin/bash -e

BASE=$(dirname "$0")

rm -rf temp
ocropus-nlbin "$BASE"/tests/testpage.png -o temp
ocropus-gpageseg 'temp/????.bin.png'
ocropus-rpred --parallel=0 --nocheck 'temp/0001/01000?.bin.png'
ocropus-hocr 'temp/????.bin.png' -o temp.html 2>/dev/null
ocropus-visualize-results temp
ocropus-gtedit html temp/????/??????.bin.png -o temp-correction.html

0 comments on commit 5c75140

Please sign in to comment.