diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 63dcf88..0000000 --- a/Dockerfile +++ /dev/null @@ -1,46 +0,0 @@ -FROM cimg/android:2024.07.1-node - -# Setup Android environment -ARG ARCH="x86_64" -ARG TARGET="google_apis_playstore" -ARG API_LEVEL="34" -ARG ANDROID_API_LEVEL="android-${API_LEVEL}" -ARG ANDROID_APIS="${TARGET};${ARCH}" -ARG EMULATOR_PACKAGE="system-images;${ANDROID_API_LEVEL};${ANDROID_APIS}" -ARG ANDROID_SDK_PACKAGES="${EMULATOR_PACKAGE}" -# Install system image for emulator. -RUN sdkmanager --verbose ${ANDROID_SDK_PACKAGES} -# Create new virtual device -RUN avdmanager --verbose create avd --name "pixel_7" --device "pixel_7" --package "system-images;android-34;google_apis_playstore;x86_64" - -WORKDIR /inrupt-wallet-frontend/ -COPY package.json package-lock.json ./ - -RUN npm ci - -COPY --chown=circleci .detoxrc.js app.config.ts metro.config.js tsconfig.json run_docker_ui_tests.sh ./ -COPY ../../android-config/ ./android-config/ -COPY api/ ./api/ -COPY app/ ./app/ -COPY assets/ ./assets/ -COPY components/ ./components/ -COPY constants/ ./constants/ -COPY e2e/ ./e2e/ -COPY hooks/ ./hooks/ -COPY plugins/ ./plugins/ -COPY types/ ./types/ -COPY utils/ ./utils/ -# The APK must be compiled beforehand -# TODO: Add a test checking for its presence -COPY android/app/build/outputs/apk/release/app-release.apk ./android/app/build/outputs/apk/release/app-release.apk -COPY android/app/build/outputs/apk/androidTest/release/app-release-androidTest.apk ./android/app/build/outputs/apk/androidTest/release/app-release-androidTest.apk - -RUN chown circleci . -RUN chmod u+x run_docker_ui_tests.sh - -ENV CI=true -ENV SIGNING_CONFIG_PATH=/inrupt-wallet-frontend/android-config/signing-config.gradle -ENV TEST_ANDROID_EMU="pixel_7" -ENV NODE_ENV="docker" - -CMD ["bash", "-c", "./run_docker_ui_tests.sh"] diff --git a/run_docker_ui_tests.sh b/run_docker_ui_tests.sh deleted file mode 100644 index fc0dbaf..0000000 --- a/run_docker_ui_tests.sh +++ /dev/null @@ -1,12 +0,0 @@ -#! /bin/bash - -# Enable QEmu hardware acceleration. -sudo chown circleci -R /dev/kvm -echo "kvm:x:200:circleci" | sudo tee -a /etc/group -# Check that hardware emulation is enabled. -emulator -accel-check - -sudo chown circleci -R /screenshots - -# Run the tests -npx detox test --configuration android.emu.release --loglevel verbose --record-logs all