diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-15 03:34:50 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-15 03:34:50 +0000 |
commit | def92d1b8e9d373e2f6f27c366d578d97d8960c6 (patch) | |
tree | 2ef34b9ad8bb9a9220e05d60352558b15f513894 /taskcluster/docker/android-ui-tests | |
parent | Adding debian version 125.0.3-1. (diff) | |
download | firefox-def92d1b8e9d373e2f6f27c366d578d97d8960c6.tar.xz firefox-def92d1b8e9d373e2f6f27c366d578d97d8960c6.zip |
Merging upstream version 126.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'taskcluster/docker/android-ui-tests')
-rw-r--r-- | taskcluster/docker/android-ui-tests/Dockerfile | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/taskcluster/docker/android-ui-tests/Dockerfile b/taskcluster/docker/android-ui-tests/Dockerfile new file mode 100644 index 0000000000..0a1d9a9305 --- /dev/null +++ b/taskcluster/docker/android-ui-tests/Dockerfile @@ -0,0 +1,42 @@ +ARG DOCKER_IMAGE_PARENT +FROM $DOCKER_IMAGE_PARENT + +LABEL authors="Richard Pappalardo <rpappalax@gmail.com>, Aaron Train <atrain@mozilla.com>" +LABEL maintainer="Richard Pappalardo <rpappalax@gmail.com>" + +#---------------------------------------------------------------------------------------------------------------------- +#-- Test tools -------------------------------------------------------------------------------------------------------- +#---------------------------------------------------------------------------------------------------------------------- + +RUN chown -R worker:worker ${HOME}/.config + +USER worker:worker + +ENV GOOGLE_SDK_DOWNLOAD ./gcloud.tar.gz +ENV GOOGLE_SDK_VERSION 450 + +ENV TEST_TOOLS /builds/worker/test-tools +ENV PATH ${PATH}:${TEST_TOOLS}:${TEST_TOOLS}/google-cloud-sdk/bin + +RUN mkdir -p ${TEST_TOOLS} && \ + mkdir -p ${HOME}/.config/gcloud + +RUN curl https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-${GOOGLE_SDK_VERSION}.0.0-linux-x86_64.tar.gz --output ${GOOGLE_SDK_DOWNLOAD} \ + && tar -xvf ${GOOGLE_SDK_DOWNLOAD} -C ${TEST_TOOLS} \ + && rm -f ${GOOGLE_SDK_DOWNLOAD} \ + && ${TEST_TOOLS}/google-cloud-sdk/install.sh --quiet \ + && ${TEST_TOOLS}/google-cloud-sdk/bin/gcloud --quiet components update + +# Flank v21.08.1 (pinned release) +RUN URL_FLANK_BIN="$($CURL --silent 'https://api.github.com/repos/Flank/flank/releases/48276753' | jq -r '.assets[] | select(.browser_download_url | test("flank.jar")) .browser_download_url')" \ + && $CURL --output "${TEST_TOOLS}/flank.jar" "${URL_FLANK_BIN}" \ + && chmod +x "${TEST_TOOLS}/flank.jar" + +# Used in parse-ui-test-fromfile.py +RUN pip3 install --break-system-packages junitparser beautifultable + +# Used for env var ingest in testrail.py +RUN pip3 install --break-system-packages python-dotenv + +# run-task expects to run as root +USER root |