Permalink
Browse files

Taskcluster: test in Android emulator

  • Loading branch information...
SimonSapin committed Oct 10, 2018
1 parent 33c7154 commit dafc1c42a7ca444b26434d89b1719ba7f20c6d1b
Showing with 24 additions and 1 deletion.
  1. +24 −1 etc/taskcluster/decision_task.py
@@ -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,28 @@ 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("base"))
.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
apt-get install -y --no-install-recommends openjdk-8-jdk-headless libgl1 libpulse0
./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 +221,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 comments on commit dafc1c4

Please sign in to comment.