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