From 7d17b9b2d462a78dbcd54f89f0ec00186be7b0f7 Mon Sep 17 00:00:00 2001 From: "Gerber, Mike" Date: Mon, 10 Feb 2020 15:00:56 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20Add=20initial=20Travis=20configurat?= =?UTF-8?q?ion?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .travis.yml | 14 ++++++++++++++ build | 4 +++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..b685603 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,14 @@ +language: generic + +services: + - docker + +install: + - FORCE_GET_FROM_WEB=y ./build + +script: + - 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 diff --git a/build b/build index c3830b4..81415c9 100755 --- a/build +++ b/build @@ -77,7 +77,9 @@ download_to() { set -e -if ! check_data_subdir; then +if [ -n "$FORCE_GET_FROM_WEB" ]; then + get_from_web +elif ! check_data_subdir; then select choice in "Abort to manually fix $DATA_SUBDIR submodule" "Download data files from the web"; do if [ $REPLY = 1 ]; then suggest_commands