Permalink
Browse files

Taskcluster: test in Android emulator

  • Loading branch information...
SimonSapin committed Oct 10, 2018
1 parent 33c7154 commit d577a1ccced4e877b282d10ba0a9e5a92f146253
Showing with 33 additions and 1 deletion.
  1. +22 −1 etc/taskcluster/decision_task.py
  2. +11 −0 etc/taskcluster/docker/run-android-emulator.dockerfile
@@ -94,7 +94,7 @@ def android_arm32():
def android_x86():
return (
build_task = (
android_build_task("Android x86: release build")
.with_script("./mach build --target i686-linux-android --release")
.with_artifacts(
@@ -103,6 +103,26 @@ def android_x86():
)
.find_or_create("build.android_x86_release." + CONFIG.git_sha)
)
return (
linux_task("Android x86: tests in emulator")
.with_dockerfile(dockerfile_path("run-android-emulator"))
.with_dependencies(build_task)
.with_env(BUILD_TASK_ID=build_task)
.with_repo()
.with_script("""
mkdir -p target/i686-linux-android/release/
./etc/taskcluster/curl-artifact.sh ${BUILD_TASK_ID} servoapp.apk \
-o target/i686-linux-android/release/servoapp.apk
./mach bootstrap-android --accept-all-licences --emulator-x86
./mach test-android-startup --release
./mach test-wpt-android --release \
/_mozilla/mozilla/DOMParser.html \
/_mozilla/mozilla/webgl/context_creation_error.html
""")
.create()
)
def windows_dev():
@@ -199,6 +219,7 @@ def linux_run_task(name, build_task, script):
return (
linux_task(name)
.with_dockerfile(dockerfile_path("run"))
.with_repo()
.with_early_script("""
./etc/taskcluster/curl-artifact.sh ${BUILD_TASK_ID} target.tar.gz | tar -xz
""")
@@ -0,0 +1,11 @@
% include base.dockerfile
RUN \
apt-get install -qy --no-install-recommends \
#
# Multiple Android-related tools are in Java
openjdk-8-jdk-headless \
#
# Emulator dependencies
libgl1 \
libpulse0

0 comments on commit d577a1c

Please sign in to comment.