diff options
author | verhoek <30193551+verhoek@users.noreply.github.com> | 2019-12-03 23:15:25 +0300 |
---|---|---|
committer | verhoek <30193551+verhoek@users.noreply.github.com> | 2019-12-03 23:15:25 +0300 |
commit | 063c812e5e507ac65e626c56e4333d5bc91f57d5 (patch) | |
tree | 5ba3625105c85436609cc8e69fcbeaf658745790 /pipeline | |
parent | d99669fec5001189034eeb4b19e3e6f6f44c04b5 (diff) |
Version bump test + sanity check
Forgot a version bump and added sanity check of source/target dirs.
Diffstat (limited to 'pipeline')
-rwxr-xr-x | pipeline/docker-run/docker-run | 6 | ||||
-rwxr-xr-x | pipeline/stage_unittests/job.sh | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/pipeline/docker-run/docker-run b/pipeline/docker-run/docker-run index 8e1cf78a9..aa3625825 100755 --- a/pipeline/docker-run/docker-run +++ b/pipeline/docker-run/docker-run @@ -82,6 +82,12 @@ function parse_options () { fi done + + if [ "${TARGET_DIR##${SOURCE_DIR}}" != "${TARGET_DIR}" ]; then + echo "targetdir $TARGET_DIR is not allowed to be a subdir of sourcedir $SOURCE_DIR" + fi + + add_option "--workingdir" "$TARGET_DIR" add_option "--sourcedirnum" ${#SOURCE_DIR[@]} } diff --git a/pipeline/stage_unittests/job.sh b/pipeline/stage_unittests/job.sh index e2d1fd637..d31ac509b 100755 --- a/pipeline/stage_unittests/job.sh +++ b/pipeline/stage_unittests/job.sh @@ -25,7 +25,7 @@ function start_test () { fi travis_mark_begin "UNIT TESTING CATEGORY $CAT" - mono "${DUPLICATI_ROOT}"/testrunner/NUnit.ConsoleRunner.3.5.0/tools/nunit3-console.exe \ + mono "${DUPLICATI_ROOT}"/testrunner/NUnit.ConsoleRunner.3.10.0/tools/nunit3-console.exe \ "${DUPLICATI_ROOT}"/Duplicati/UnitTest/bin/Release/Duplicati.UnitTest.dll --where:cat==$CAT --workers=1 travis_mark_end "UNIT TESTING CATEGORY $CAT" done |