From 61ac2af07cb775f7ce4bdfe390e97ed0264ff551 Mon Sep 17 00:00:00 2001 From: Carl Wilson Date: Mon, 21 May 2018 18:42:36 +0100 Subject: [PATCH] TEST - Easier Black Box Testing - added `bbt-jhove` symlink to project root; - fixed `travis-test.sh` script to work with symlinks; and - changed `.travis.yml` to use the symlink. --- .travis.yml | 2 +- bbt-jhove | 1 + jhove-bbt/scripts/travis-test.sh | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) create mode 120000 bbt-jhove diff --git a/.travis.yml b/.travis.yml index ac4420e10..e1bd59913 100644 --- a/.travis.yml +++ b/.travis.yml @@ -38,7 +38,7 @@ before_install: script: - mvn clean install -DjacocoAgg - - "./jhove-bbt/scripts/travis-test.sh" + - "./bbt-jhove" - mvn verify -DjacocoAgg after_success: diff --git a/bbt-jhove b/bbt-jhove new file mode 120000 index 000000000..4584df343 --- /dev/null +++ b/bbt-jhove @@ -0,0 +1 @@ +./jhove-bbt/scripts/travis-test.sh \ No newline at end of file diff --git a/jhove-bbt/scripts/travis-test.sh b/jhove-bbt/scripts/travis-test.sh index 297361b4d..1d3b67f03 100755 --- a/jhove-bbt/scripts/travis-test.sh +++ b/jhove-bbt/scripts/travis-test.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash # Grab the execution directory -SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +SCRIPT_DIR="$( dirname "$( readlink -f "${BASH_SOURCE[0]}" )")" export SCRIPT_DIR # Include utils script