forked from mozilla/klaatu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.android
42 lines (31 loc) · 1.12 KB
/
Dockerfile.android
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
FROM python:3.11.3-alpine
ENV PYTEST_ARGS="" \
EXPERIMENT_SLUG=experiment_slug
# Install requirements to install tools
RUN dependencies=' \
bzip2 \
ca-certificates \
curl \
sudo \
wget \
build-base \
gcc \
git \
bash \
android-tools \
' \
&& set -x \
&& apk update && apk add --no-cache $dependencies
# Install nimbus-cli
RUN curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/mozilla/application-services/main/install-nimbus-cli.sh | sh
# Install pipenv
RUN pip install pipenv
# Clone tests
RUN git clone https://github.com/mozilla-mobile/firefox-android.git --depth 1
WORKDIR /firefox-android/fenix/app/src/androidTest/java/org/mozilla/fenix/experimentintegration
RUN pipenv install
RUN pipenv run python generate_smoke_tests.py
CMD [ "sh", "-c", "pipenv run pytest --experiment ${EXPERIMENT_SLUG} ${PYTEST_ARGS}" ]