ocrd-galley/.travis.yml

39 lines
1.4 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

language: generic
services:
- docker
git:
submodules: false # Avoid trying to checkout private data/ submodule
jobs:
include:
- stage: Build Docker image
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
# We are using the image my_ocrd_workflow to cache, so pull and tag it
- docker pull $DOCKER_USERNAME/my_ocrd_workflow
- docker tag $DOCKER_USERNAME/my_ocrd_workflow my_ocrd_workflow
- FORCE_DOWNLOAD=y ./build
- docker tag my_ocrd_workflow $DOCKER_USERNAME/my_ocrd_workflow
- docker images
- docker push $DOCKER_USERNAME/my_ocrd_workflow
- stage: Test
script:
- docker pull $DOCKER_USERNAME/my_ocrd_workflow
- docker tag $DOCKER_USERNAME/my_ocrd_workflow my_ocrd_workflow
- curl -O https://qurator-data.de/examples/actevedef_718448162.first-page.zip
- unzip actevedef_718448162.first-page.zip
- cd actevedef_718448162.first-page
- $TRAVIS_BUILD_DIR/run
- curl --upload-file OCR-D-OCR-CALAMARI/OCR-D-OCR-CALAMARI_00000024.xml https://transfer.sh/my_ocrd_workflow_$RANDOM.xml 1>&2
- grep -q 'auswaͤrtige Rechtsgelaͤhrte haͤtten muͤſſen bef.aget werden' OCR-D-OCR-CALAMARI/OCR-D-OCR-CALAMARI_00000024.xml
- grep -q 'auswaͤrtige Rechtsgelaͤhrte haͤtten muͤſſen bef.aget werden' OCR-D-OCR-TESS/OCR-D-OCR-TESS_00000024.xml