commit
d18720a7d8
|
@ -27,6 +27,7 @@ tasks:
|
||||||
"index:insert-task:project.deepspeech.*",
|
"index:insert-task:project.deepspeech.*",
|
||||||
"queue:scheduler-id:taskcluster-github",
|
"queue:scheduler-id:taskcluster-github",
|
||||||
"generic-worker:cache:deepspeech-macos-pyenv",
|
"generic-worker:cache:deepspeech-macos-pyenv",
|
||||||
|
"docker-worker:capability:device:kvm"
|
||||||
]
|
]
|
||||||
|
|
||||||
payload:
|
payload:
|
||||||
|
|
|
@ -145,7 +145,7 @@ android_start_emulator()
|
||||||
# > emulator: INFO: QtLogger.cpp:68: Warning: could not connect to display ((null):0, (null))
|
# > emulator: INFO: QtLogger.cpp:68: Warning: could not connect to display ((null):0, (null))
|
||||||
# -accel on is needed otherwise it is too slow, but it will require KVM support exposed
|
# -accel on is needed otherwise it is too slow, but it will require KVM support exposed
|
||||||
pushd ${ANDROID_SDK_HOME}
|
pushd ${ANDROID_SDK_HOME}
|
||||||
xvfb-run ./tools/emulator -verbose -avd "${_flavor}-ds-pixel-${_api_level}" -no-skin -no-audio -no-window -no-boot-anim -accel off &
|
xvfb-run ./tools/emulator -verbose -avd "${_flavor}-ds-pixel-${_api_level}" -no-skin -no-audio -no-window -no-boot-anim -accel on &
|
||||||
emulator_rc=$?
|
emulator_rc=$?
|
||||||
export ANDROID_DEVICE_EMULATOR=$!
|
export ANDROID_DEVICE_EMULATOR=$!
|
||||||
popd
|
popd
|
||||||
|
|
|
@ -12,6 +12,8 @@ then:
|
||||||
created: { $fromNow: '0 sec' }
|
created: { $fromNow: '0 sec' }
|
||||||
deadline: { $fromNow: '1 day' }
|
deadline: { $fromNow: '1 day' }
|
||||||
expires: { $fromNow: '7 days' }
|
expires: { $fromNow: '7 days' }
|
||||||
|
scopes:
|
||||||
|
- "docker-worker:capability:device:kvm"
|
||||||
|
|
||||||
extra:
|
extra:
|
||||||
github:
|
github:
|
||||||
|
@ -21,6 +23,10 @@ then:
|
||||||
maxRunTime: { $eval: to_int(build.maxRunTime) }
|
maxRunTime: { $eval: to_int(build.maxRunTime) }
|
||||||
image: "ubuntu:18.04"
|
image: "ubuntu:18.04"
|
||||||
|
|
||||||
|
capabilities:
|
||||||
|
devices:
|
||||||
|
kvm: true
|
||||||
|
|
||||||
env:
|
env:
|
||||||
$let:
|
$let:
|
||||||
training: { $eval: as_slugid(build.test_model_task) }
|
training: { $eval: as_slugid(build.test_model_task) }
|
||||||
|
@ -41,7 +47,7 @@ then:
|
||||||
in: >
|
in: >
|
||||||
apt-get -qq update && apt-get -qq -y install git gnupg pixz sox sudo wget unzip software-properties-common xvfb &&
|
apt-get -qq update && apt-get -qq -y install git gnupg pixz sox sudo wget unzip software-properties-common xvfb &&
|
||||||
add-apt-repository --yes ppa:openjdk-r/ppa && apt-get -qq update && DEBIAN_FRONTEND=noninteractive apt-get -qq -y --force-yes install openjdk-8-jdk && java -version && update-ca-certificates -f &&
|
add-apt-repository --yes ppa:openjdk-r/ppa && apt-get -qq update && DEBIAN_FRONTEND=noninteractive apt-get -qq -y --force-yes install openjdk-8-jdk && java -version && update-ca-certificates -f &&
|
||||||
${extraSystemSetup} &&
|
${extraSystemSetup} && chmod 777 /dev/kvm &&
|
||||||
adduser --system --home ${system.homedir.linux} ${system.username} &&
|
adduser --system --home ${system.homedir.linux} ${system.username} &&
|
||||||
cd ${system.homedir.linux} &&
|
cd ${system.homedir.linux} &&
|
||||||
echo -e "#!/bin/bash\nset -xe\n env && id && mkdir ~/DeepSpeech/ && git clone --quiet ${event.head.repo.url} ~/DeepSpeech/ds/ && cd ~/DeepSpeech/ds && git checkout --quiet ${event.head.sha} && mkdir -p ${system.homedir.linux}/ds-swig/bin/ && wget -O - ${system.swig.cache.linux_amd64} | tar -C ${system.homedir.linux}/ds-swig/ -xzf - && wget -O - ${build.cache.url} | tar -C ${system.homedir.linux} -xzf - && if [ ! -z "${build.gradle_cache.url}" ]; then wget -O - ${build.gradle_cache.url} | tar -C ${system.homedir.linux}/ -xzf - ; fi;" > /tmp/clone.sh && chmod +x /tmp/clone.sh &&
|
echo -e "#!/bin/bash\nset -xe\n env && id && mkdir ~/DeepSpeech/ && git clone --quiet ${event.head.repo.url} ~/DeepSpeech/ds/ && cd ~/DeepSpeech/ds && git checkout --quiet ${event.head.sha} && mkdir -p ${system.homedir.linux}/ds-swig/bin/ && wget -O - ${system.swig.cache.linux_amd64} | tar -C ${system.homedir.linux}/ds-swig/ -xzf - && wget -O - ${build.cache.url} | tar -C ${system.homedir.linux} -xzf - && if [ ! -z "${build.gradle_cache.url}" ]; then wget -O - ${build.gradle_cache.url} | tar -C ${system.homedir.linux}/ -xzf - ; fi;" > /tmp/clone.sh && chmod +x /tmp/clone.sh &&
|
||||||
|
|
Loading…
Reference in New Issue