diff options
author | verhoek <30193551+verhoek@users.noreply.github.com> | 2019-12-02 23:30:37 +0300 |
---|---|---|
committer | verhoek <30193551+verhoek@users.noreply.github.com> | 2019-12-02 23:35:39 +0300 |
commit | 49db5035a82a7ae055d9da8bb19aa65b30f77bcf (patch) | |
tree | eaaefcd96d41df1d1981ae8510125f7fb19741ca /pipeline/stage_integrationtests | |
parent | 430bf8024161eb83243fdfeb1d93f12c0c056146 (diff) |
Imported duplicatipipeline scripts
Added bash scripts to run the dockerized build and test environment
Diffstat (limited to 'pipeline/stage_integrationtests')
-rwxr-xr-x | pipeline/stage_integrationtests/job.sh | 22 | ||||
-rwxr-xr-x | pipeline/stage_integrationtests/trigger.sh | 9 |
2 files changed, 31 insertions, 0 deletions
diff --git a/pipeline/stage_integrationtests/job.sh b/pipeline/stage_integrationtests/job.sh new file mode 100755 index 000000000..477fce92f --- /dev/null +++ b/pipeline/stage_integrationtests/job.sh @@ -0,0 +1,22 @@ +#!/bin/bash +. /pipeline/docker-run/markers.sh +. /pipeline/shared/duplicati.sh + +function start_test () { + pip install selenium + pip install --upgrade urllib3 + + # wget "https://github.com/mozilla/geckodriver/releases/download/v0.23.0/geckodriver-v0.23.0-linux32.tar.gz" + # tar -xvzf geckodriver* + # chmod +x geckodriver + # export PATH=$PATH:/duplicati/ + + #echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | tee -a /etc/ssl/certs/ca- + mono "${DUPLICATI_ROOT}/Duplicati/GUI/Duplicati.GUI.TrayIcon/bin/Release/Duplicati.Server.exe" & + cd + python /application/guiTests/guiTest.py +} + +travis_mark_begin "INTEGRATION TESTING" +start_test +travis_mark_end "INTEGRATION TESTING"
\ No newline at end of file diff --git a/pipeline/stage_integrationtests/trigger.sh b/pipeline/stage_integrationtests/trigger.sh new file mode 100755 index 000000000..49581088a --- /dev/null +++ b/pipeline/stage_integrationtests/trigger.sh @@ -0,0 +1,9 @@ +#!/bin/bash +. error_handling.sh + +PACKAGES="python-pip rsync mono-complete" +docker-run --image selenium/standalone-firefox \ +--packages "$PACKAGES" \ +--asroot \ +--sharedmem \ +--command "sudo -u seluser /pipeline/stage_integrationtests/job.sh" "$@"
\ No newline at end of file |