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 with 15 additions and 4 deletions.
  1. +1 −1 .travis.yml
  2. +1 −1 circle.yml
  3. +2 −2 run-test
  4. +11 −0 run-test-ci
View
@@ -45,4 +45,4 @@ install:
script:
- mkdir ../test_folder
- cd ../test_folder
- - ../ocropy/run-test
+ - ../ocropy/run-test-ci
View
@@ -14,4 +14,4 @@ dependencies:
- models
test:
override:
- - PATH=$PWD:$PATH ./run-test
+ - PATH=$PWD:$PATH ./run-test-ci
View
@@ -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
View
@@ -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.