diff options
author | Kenneth Hsu <kennethhsu@gmail.com> | 2020-07-30 03:02:47 +0300 |
---|---|---|
committer | Kenneth Hsu <kennethhsu@gmail.com> | 2020-07-30 04:04:43 +0300 |
commit | c3c80f58ef14b67bd3a57f63ee1ba9303cb07721 (patch) | |
tree | 32e679b3fdb3fdd783c190399ba1cf710d4d6e3d /pipeline/stage_integrationtests | |
parent | 70e8c93d26dd8b55986ca86bc8d8ad59a94c1eb8 (diff) |
Update version of mono used in GUI tests.
The selenium docker image is based on Ubuntu bionic, whose version of
mono-complete is 4.6.2.7. Since we require mono 5.10.0 or greater, we
will explicitly install the latest version.
Diffstat (limited to 'pipeline/stage_integrationtests')
-rwxr-xr-x | pipeline/stage_integrationtests/job.sh | 12 | ||||
-rwxr-xr-x | pipeline/stage_integrationtests/trigger.sh | 4 |
2 files changed, 13 insertions, 3 deletions
diff --git a/pipeline/stage_integrationtests/job.sh b/pipeline/stage_integrationtests/job.sh index de0fed3e7..12f6762c9 100755 --- a/pipeline/stage_integrationtests/job.sh +++ b/pipeline/stage_integrationtests/job.sh @@ -2,6 +2,15 @@ . /pipeline/docker-run/markers.sh . /pipeline/shared/duplicati.sh +# The version of mono available within the selenium docker image is too old so +# we will install the latest version. +function update_mono () { + sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF + echo "deb https://download.mono-project.com/repo/ubuntu stable-bionic main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list + sudo apt update + sudo apt install -y mono-complete +} + function start_test () { pip install selenium pip install --upgrade urllib3 @@ -18,5 +27,6 @@ function start_test () { } travis_mark_begin "INTEGRATION TESTING" +update_mono start_test -travis_mark_end "INTEGRATION TESTING"
\ No newline at end of file +travis_mark_end "INTEGRATION TESTING" diff --git a/pipeline/stage_integrationtests/trigger.sh b/pipeline/stage_integrationtests/trigger.sh index c747a5888..f3a404fb2 100755 --- a/pipeline/stage_integrationtests/trigger.sh +++ b/pipeline/stage_integrationtests/trigger.sh @@ -1,9 +1,9 @@ #!/bin/bash . error_handling.sh -PACKAGES="python-pip rsync mono-complete" +PACKAGES="python-pip rsync" 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 +--command "sudo -u seluser /pipeline/stage_integrationtests/job.sh" $@ |