]> git.lizzy.rs Git - rust.git/commitdiff
Use 64 bits emulator to run android tests
authorMarco A L Barbosa <malbarbo@gmail.com>
Fri, 31 Mar 2017 20:26:55 +0000 (17:26 -0300)
committerMarco A L Barbosa <malbarbo@gmail.com>
Fri, 31 Mar 2017 20:26:55 +0000 (17:26 -0300)
Also install headless jre instead of the full jre.

src/ci/docker/arm-android/Dockerfile
src/ci/docker/arm-android/start-emulator.sh

index 4c89ce12531b4b85087d83d2b2c7c7bf0a308a6a..04ca6d76c557b9086af1e91fbc3c4ca9a1e63b73 100644 (file)
@@ -13,7 +13,7 @@ RUN dpkg --add-architecture i386 && \
   cmake \
   unzip \
   expect \
-  openjdk-9-jre \
+  openjdk-9-jre-headless \
   sudo \
   libstdc++6:i386 \
   xz-utils \
index 24c477d87f1a72975a3f0fb650d37b3e82dd3f99..4a73637e9ddbf977d987f4d62423d00c1eac6b6a 100755 (executable)
@@ -10,7 +10,9 @@
 # except according to those terms.
 
 set -ex
-ANDROID_EMULATOR_FORCE_32BIT=true \
-  nohup nohup emulator @arm-18 -no-window -partition-size 2047 \
-  0<&- &>/dev/null &
+
+# Setting SHELL to a file instead on a symlink helps android
+# emulator identify the system
+export SHELL=/bin/bash
+nohup nohup emulator @arm-18 -no-window -partition-size 2047 0<&- &>/dev/null &
 exec "$@"