Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/duplicati/duplicati.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorverhoek <30193551+verhoek@users.noreply.github.com>2019-12-02 23:30:37 +0300
committerverhoek <30193551+verhoek@users.noreply.github.com>2019-12-02 23:35:39 +0300
commit49db5035a82a7ae055d9da8bb19aa65b30f77bcf (patch)
treeeaaefcd96d41df1d1981ae8510125f7fb19741ca /pipeline/jobs
parent430bf8024161eb83243fdfeb1d93f12c0c056146 (diff)
Imported duplicatipipeline scripts
Added bash scripts to run the dockerized build and test environment
Diffstat (limited to 'pipeline/jobs')
-rwxr-xr-xpipeline/jobs/build_job.sh8
-rwxr-xr-xpipeline/jobs/params.sh13
-rwxr-xr-xpipeline/jobs/selenium_job.sh8
-rwxr-xr-xpipeline/jobs/unittest1_job.sh10
-rwxr-xr-xpipeline/jobs/unittest2_job.sh10
-rwxr-xr-xpipeline/jobs/unittest3_job.sh10
-rwxr-xr-xpipeline/jobs/unittest4_job.sh9
-rwxr-xr-xpipeline/jobs/unittest5_job.sh10
8 files changed, 78 insertions, 0 deletions
diff --git a/pipeline/jobs/build_job.sh b/pipeline/jobs/build_job.sh
new file mode 100755
index 000000000..41faaee30
--- /dev/null
+++ b/pipeline/jobs/build_job.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+SCRIPT_DIR="$( cd "$(dirname "$0")" ; pwd -P )"
+. "${SCRIPT_DIR}/params.sh"
+
+${ROOT_DIR}/pipeline/stage_build/trigger.sh \
+${FORWARD_OPTS[@]} \
+--sourcedir "${ROOT_DIR}" \
+--targetdir "${BUILD_DIR}" | ts
diff --git a/pipeline/jobs/params.sh b/pipeline/jobs/params.sh
new file mode 100755
index 000000000..1b6ec88c9
--- /dev/null
+++ b/pipeline/jobs/params.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+export PATH="$PATH:${ROOT_DIR}/pipeline/docker-run"
+. error_handling.sh
+
+function add_option () {
+ FORWARD_OPTS[${#FORWARD_OPTS[@]}]="$1"
+ FORWARD_OPTS[${#FORWARD_OPTS[@]}]="$2"
+}
+
+FORWARD_OPTS=()
+
+export FORWARD_OPTS
diff --git a/pipeline/jobs/selenium_job.sh b/pipeline/jobs/selenium_job.sh
new file mode 100755
index 000000000..977dafe1c
--- /dev/null
+++ b/pipeline/jobs/selenium_job.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+SCRIPT_DIR="$( cd "$(dirname "$0")" ; pwd -P )"
+. "${SCRIPT_DIR}/params.sh"
+
+${ROOT_DIR}/pipeline/stage_integrationtests/trigger.sh \
+${FORWARD_OPTS[@]} \
+--sourcedir "${BUILD_DIR}" \
+--targetdir "${TEST_DIR}"| ts
diff --git a/pipeline/jobs/unittest1_job.sh b/pipeline/jobs/unittest1_job.sh
new file mode 100755
index 000000000..1d7d85c87
--- /dev/null
+++ b/pipeline/jobs/unittest1_job.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+SCRIPT_DIR="$( cd "$(dirname "$0")" ; pwd -P )"
+. "${SCRIPT_DIR}/params.sh"
+
+${ROOT_DIR}/pipeline/stage_unittests/trigger.sh \
+${FORWARD_OPTS[@]} \
+--sourcedir $BUILD_DIR \
+--targetdir $TEST_DIR \
+--testcategories BulkNormal \
+--testdata data.zip | ts
diff --git a/pipeline/jobs/unittest2_job.sh b/pipeline/jobs/unittest2_job.sh
new file mode 100755
index 000000000..1266e9444
--- /dev/null
+++ b/pipeline/jobs/unittest2_job.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+SCRIPT_DIR="$( cd "$(dirname "$0")" ; pwd -P )"
+. "${SCRIPT_DIR}/params.sh"
+
+${ROOT_DIR}/pipeline/stage_unittests/trigger.sh \
+${FORWARD_OPTS[@]} \
+--sourcedir $BUILD_DIR \
+--targetdir $TEST_DIR \
+--testcategories BulkNoSize \
+--testdata data.zip | ts
diff --git a/pipeline/jobs/unittest3_job.sh b/pipeline/jobs/unittest3_job.sh
new file mode 100755
index 000000000..e21a0520e
--- /dev/null
+++ b/pipeline/jobs/unittest3_job.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+SCRIPT_DIR="$( cd "$(dirname "$0")" ; pwd -P )"
+. "${SCRIPT_DIR}/params.sh"
+
+${ROOT_DIR}/pipeline/stage_unittests/trigger.sh \
+${FORWARD_OPTS[@]} \
+--sourcedir $BUILD_DIR \
+--targetdir $TEST_DIR \
+--testcategories SVNDataLong,SVNData \
+--testdata DSMCBE.zip | ts
diff --git a/pipeline/jobs/unittest4_job.sh b/pipeline/jobs/unittest4_job.sh
new file mode 100755
index 000000000..f21bc9484
--- /dev/null
+++ b/pipeline/jobs/unittest4_job.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+SCRIPT_DIR="$( cd "$(dirname "$0")" ; pwd -P )"
+. "${SCRIPT_DIR}/params.sh"
+
+${ROOT_DIR}/pipeline/stage_unittests/trigger.sh \
+${FORWARD_OPTS[@]} \
+--sourcedir $BUILD_DIR \
+--targetdir $TEST_DIR \
+--testcategories Border | ts
diff --git a/pipeline/jobs/unittest5_job.sh b/pipeline/jobs/unittest5_job.sh
new file mode 100755
index 000000000..dc00bc2d8
--- /dev/null
+++ b/pipeline/jobs/unittest5_job.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+SCRIPT_DIR="$( cd "$(dirname "$0")" ; pwd -P )"
+. "${SCRIPT_DIR}/params.sh"
+
+${ROOT_DIR}/pipeline/stage_unittests/trigger.sh \
+${FORWARD_OPTS[@]} \
+--sourcedir $BUILD_DIR \
+--targetdir $TEST_DIR \
+--testcategories Filter,Targeted,Purge,Serialization,WebApi,Utility,UriUtility,IO,ImportExport | ts
+