Skip to content

Instantly share code, notes, and snippets.

@sonOfRa
Created October 4, 2018 07:26
Show Gist options
  • Select an option

  • Save sonOfRa/92b8d55dfc6000c499404adede9f2a8f to your computer and use it in GitHub Desktop.

Select an option

Save sonOfRa/92b8d55dfc6000c499404adede9f2a8f to your computer and use it in GitHub Desktop.
Running with gitlab-runner 11.3.1 (0aa5179e)
 on Android 28 Runner be8fc62c
Using Docker executor with image mreichelt/android:28-system ...
Pulling docker image mreichelt/android:28-system ...
Using docker image sha256:058a0b120fe3e6269ccbeb789fdcb11a02d55eece9e59e22567f8521cc74e664 for mreichelt/android:28-system ...
section_start:1538637837:prepare_script
Running on runner-be8fc62c-project-1-concurrent-0 via apollo...
section_end:1538637839:prepare_script
section_start:1538637839:get_sources
Fetching changes...
Removing .gradle/
Removing .gradlehome/
Removing app-debug.apk
Removing app/build/
Removing unit-test/
HEAD is now at 5cd0503 Don't uninstall and reinstall the emulator tool
From http://localhost/root/testthing
5cd0503..32f88fb master -> origin/master
Checking out 32f88fb8 as master...
Skipping Git submodules setup
section_end:1538637851:get_sources
section_start:1538637851:restore_cache
Checking cache for default...
No URL provided, cache will be not downloaded from shared cache server. Instead a local version of cache will be extracted.
Successfully extracted cache
section_end:1538637857:restore_cache
section_start:1538637857:download_artifacts
section_end:1538637859:download_artifacts
section_start:1538637859:build_script
$ chmod +x ./gradlew
$ apt install -qq --yes qemu-kvm
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
The following additional packages will be installed:
ipxe-qemu libaio1 libbluetooth3 libbrlapi0.6 libcaca0 libcacard0 libfdt1
libnuma1 libopus0 libsdl1.2debian libseccomp2 libslang2 libspice-server1
libusb-1.0-0 libusbredirparser1 libvdeplug2 libxen-4.8 libxenstore3.0
libyajl2 qemu-system-common qemu-system-x86 qemu-utils seabios
Suggested packages:
opus-tools samba vde2 qemu-block-extra kmod sgabios ovmf debootstrap
The following NEW packages will be installed:
ipxe-qemu libaio1 libbluetooth3 libbrlapi0.6 libcaca0 libcacard0 libfdt1
libnuma1 libopus0 libsdl1.2debian libseccomp2 libslang2 libspice-server1
libusb-1.0-0 libusbredirparser1 libvdeplug2 libxen-4.8 libxenstore3.0
libyajl2 qemu-kvm qemu-system-common qemu-system-x86 qemu-utils seabios
debconf: delaying package configuration, since apt-utils is not installed
0 upgraded, 24 newly installed, 0 to remove and 5 not upgraded.
Need to get 9707 kB of archives.
After this operation, 40.7 MB of additional disk space will be used.
Selecting previously unselected package qemu-system-common.
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 32108 files and directories currently installed.)
Preparing to unpack .../00-qemu-system-common_1%3a2.8+dfsg-6+deb9u4_amd64.deb ...
Unpacking qemu-system-common (1:2.8+dfsg-6+deb9u4) ...
Selecting previously unselected package libslang2:amd64.
Preparing to unpack .../01-libslang2_2.3.1-5_amd64.deb ...
Unpacking libslang2:amd64 (2.3.1-5) ...
Selecting previously unselected package ipxe-qemu.
Preparing to unpack .../02-ipxe-qemu_1.0.0+git-20161027.b991c67-1_all.deb ...
Unpacking ipxe-qemu (1.0.0+git-20161027.b991c67-1) ...
Selecting previously unselected package libaio1:amd64.
Preparing to unpack .../03-libaio1_0.3.110-3_amd64.deb ...
Unpacking libaio1:amd64 (0.3.110-3) ...
Selecting previously unselected package libbluetooth3:amd64.
Preparing to unpack .../04-libbluetooth3_5.43-2+deb9u1_amd64.deb ...
Unpacking libbluetooth3:amd64 (5.43-2+deb9u1) ...
Selecting previously unselected package libcaca0:amd64.
Preparing to unpack .../05-libcaca0_0.99.beta19-2+b2_amd64.deb ...
Unpacking libcaca0:amd64 (0.99.beta19-2+b2) ...
Selecting previously unselected package libcacard0:amd64.
Preparing to unpack .../06-libcacard0_1%3a2.5.0-3_amd64.deb ...
Unpacking libcacard0:amd64 (1:2.5.0-3) ...
Selecting previously unselected package libnuma1:amd64.
Preparing to unpack .../07-libnuma1_2.0.11-2.1_amd64.deb ...
Unpacking libnuma1:amd64 (2.0.11-2.1) ...
Selecting previously unselected package libopus0:amd64.
Preparing to unpack .../08-libopus0_1.2~alpha2-1_amd64.deb ...
Unpacking libopus0:amd64 (1.2~alpha2-1) ...
Selecting previously unselected package libsdl1.2debian:amd64.
Preparing to unpack .../09-libsdl1.2debian_1.2.15+dfsg1-4_amd64.deb ...
Unpacking libsdl1.2debian:amd64 (1.2.15+dfsg1-4) ...
Selecting previously unselected package libseccomp2:amd64.
Preparing to unpack .../10-libseccomp2_2.3.1-2.1_amd64.deb ...
Unpacking libseccomp2:amd64 (2.3.1-2.1) ...
Selecting previously unselected package libspice-server1:amd64.
Preparing to unpack .../11-libspice-server1_0.12.8-2.1+deb9u1_amd64.deb ...
Unpacking libspice-server1:amd64 (0.12.8-2.1+deb9u1) ...
Selecting previously unselected package libusb-1.0-0:amd64.
Preparing to unpack .../12-libusb-1.0-0_2%3a1.0.21-1_amd64.deb ...
Unpacking libusb-1.0-0:amd64 (2:1.0.21-1) ...
Selecting previously unselected package libusbredirparser1:amd64.
Preparing to unpack .../13-libusbredirparser1_0.7.1-1_amd64.deb ...
Unpacking libusbredirparser1:amd64 (0.7.1-1) ...
Selecting previously unselected package libvdeplug2.
Preparing to unpack .../14-libvdeplug2_2.3.2+r586-2.1_amd64.deb ...
Unpacking libvdeplug2 (2.3.2+r586-2.1) ...
Selecting previously unselected package libxenstore3.0:amd64.
Preparing to unpack .../15-libxenstore3.0_4.8.4+xsa273+shim4.10.1+xsa273-1+deb9u10_amd64.deb ...
Unpacking libxenstore3.0:amd64 (4.8.4+xsa273+shim4.10.1+xsa273-1+deb9u10) ...
Selecting previously unselected package libyajl2:amd64.
Preparing to unpack .../16-libyajl2_2.1.0-2+b3_amd64.deb ...
Unpacking libyajl2:amd64 (2.1.0-2+b3) ...
Selecting previously unselected package libxen-4.8:amd64.
Preparing to unpack .../17-libxen-4.8_4.8.4+xsa273+shim4.10.1+xsa273-1+deb9u10_amd64.deb ...
Unpacking libxen-4.8:amd64 (4.8.4+xsa273+shim4.10.1+xsa273-1+deb9u10) ...
Selecting previously unselected package libbrlapi0.6:amd64.
Preparing to unpack .../18-libbrlapi0.6_5.4-7_amd64.deb ...
Unpacking libbrlapi0.6:amd64 (5.4-7) ...
Selecting previously unselected package libfdt1:amd64.
Preparing to unpack .../19-libfdt1_1.4.2-1_amd64.deb ...
Unpacking libfdt1:amd64 (1.4.2-1) ...
Selecting previously unselected package seabios.
Preparing to unpack .../20-seabios_1.10.2-1_all.deb ...
Unpacking seabios (1.10.2-1) ...
Selecting previously unselected package qemu-system-x86.
Preparing to unpack .../21-qemu-system-x86_1%3a2.8+dfsg-6+deb9u4_amd64.deb ...
Unpacking qemu-system-x86 (1:2.8+dfsg-6+deb9u4) ...
Selecting previously unselected package qemu-utils.
Preparing to unpack .../22-qemu-utils_1%3a2.8+dfsg-6+deb9u4_amd64.deb ...
Unpacking qemu-utils (1:2.8+dfsg-6+deb9u4) ...
Selecting previously unselected package qemu-kvm.
Preparing to unpack .../23-qemu-kvm_1%3a2.8+dfsg-6+deb9u4_amd64.deb ...
Unpacking qemu-kvm (1:2.8+dfsg-6+deb9u4) ...
Setting up seabios (1.10.2-1) ...
Setting up libnuma1:amd64 (2.0.11-2.1) ...
Setting up libusbredirparser1:amd64 (0.7.1-1) ...
Setting up libbluetooth3:amd64 (5.43-2+deb9u1) ...
Setting up libxenstore3.0:amd64 (4.8.4+xsa273+shim4.10.1+xsa273-1+deb9u10) ...
Setting up libopus0:amd64 (1.2~alpha2-1) ...
Setting up libvdeplug2 (2.3.2+r586-2.1) ...
Setting up libyajl2:amd64 (2.1.0-2+b3) ...
Setting up libusb-1.0-0:amd64 (2:1.0.21-1) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Setting up libaio1:amd64 (0.3.110-3) ...
Setting up libseccomp2:amd64 (2.3.1-2.1) ...
Setting up libcacard0:amd64 (1:2.5.0-3) ...
Setting up libslang2:amd64 (2.3.1-5) ...
Setting up ipxe-qemu (1.0.0+git-20161027.b991c67-1) ...
Setting up libbrlapi0.6:amd64 (5.4-7) ...
Setting up libfdt1:amd64 (1.4.2-1) ...
Setting up qemu-system-common (1:2.8+dfsg-6+deb9u4) ...
Setting up libspice-server1:amd64 (0.12.8-2.1+deb9u1) ...
Setting up qemu-utils (1:2.8+dfsg-6+deb9u4) ...
Setting up libxen-4.8:amd64 (4.8.4+xsa273+shim4.10.1+xsa273-1+deb9u10) ...
Setting up libcaca0:amd64 (0.99.beta19-2+b2) ...
Setting up libsdl1.2debian:amd64 (1.2.15+dfsg1-4) ...
Setting up qemu-system-x86 (1:2.8+dfsg-6+deb9u4) ...
Setting up qemu-kvm (1:2.8+dfsg-6+deb9u4) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...
$ echo "no" | avdmanager create avd -n $EMULATOR_NAME -k "system-images;android-28;default;x86"
Loading local repository...
[========= ] 25% Loading local repository...
[========= ] 25% Fetch remote repository...
[========= ] 25% Fetch remote repository...
[========= ] 25% Fetch remote repository...
[=======================================] 100% Fetch remote repository...
Auto-selecting single ABI x86
Do you wish to create a custom hardware profile? [no] $ $ANDROID_HOME/emulator/emulator -avd $EMULATOR_NAME -no-window -no-audio &
$ echo $! > pidfile
$ ./wait-for-emulator.sh
emulator: WARNING: cannot read adb public key file: /root/.android/adbkey.pub
Your emulator is out of date, please update by launching Android Studio:
- Start Android Studio
- Select menu "Tools > Android > SDK Manager"
- Click "SDK Tools" tab
- Check "Android Emulator" checkbox
- Click "OK"
Waiting for emulator to start
Waiting for emulator to start
Waiting for emulator to start
Waiting for emulator to start
Waiting for emulator to start
Waiting for emulator to start
Waiting for emulator to start
Waiting for emulator to start
Waiting for emulator to start
Waiting for emulator to start
Waiting for emulator to start
Waiting for emulator to start
Waiting for emulator to start
Emulator is ready
section_end:1538637887:build_script
section_start:1538637887:after_script
Running after script...
$ if [ -f pidfile ]; then # collapsed multi-line command
section_end:1538637888:after_script
section_start:1538637888:archive_cache
Creating cache default...
.gradlehome: found 16856 matching files 
Archive is up to date! 
Created cache
section_end:1538637889:archive_cache
section_start:1538637889:upload_artifacts_on_success
section_end:1538637891:upload_artifacts_on_success
Job succeeded

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment