mirror of
https://github.com/mozilla/DeepSpeech.git
synced 2025-10-26 11:19:39 +00:00
86 lines
3.6 KiB
Plaintext
86 lines
3.6 KiB
Plaintext
$if: '(event.event != "push") && (event.event != "tag")'
|
|
then:
|
|
taskId: ${taskcluster.taskId}
|
|
provisionerId: ${taskcluster.generic.provisionerId}
|
|
workerType: ${taskcluster.generic.workerType}
|
|
taskGroupId: ${taskcluster.taskGroupId}
|
|
schedulerId: ${taskcluster.schedulerId}
|
|
dependencies:
|
|
$map: { $eval: build.dependencies }
|
|
each(b):
|
|
$eval: as_slugid(b)
|
|
created: { $fromNow: '0 sec' }
|
|
deadline: { $fromNow: '1 day' }
|
|
expires: { $fromNow: '7 days' }
|
|
|
|
extra:
|
|
github:
|
|
{ $eval: taskcluster.github_events.pull_request }
|
|
|
|
routes:
|
|
- "notify.irc-channel.${notifications.irc}.on-exception"
|
|
- "notify.irc-channel.${notifications.irc}.on-failed"
|
|
|
|
scopes: [
|
|
"queue:route:notify.irc-channel.*",
|
|
"generic-worker:cache:deepspeech-homebrew-bin",
|
|
"generic-worker:cache:deepspeech-homebrew-cache",
|
|
]
|
|
|
|
payload:
|
|
maxRunTime: { $eval: to_int(build.maxRunTime) }
|
|
|
|
env:
|
|
$let:
|
|
training: { $eval: as_slugid("test-training_upstream-linux-amd64-py35m-opt") }
|
|
darwin_amd64_build: { $eval: as_slugid("darwin-amd64-cpu-opt") }
|
|
node_package_cpu: { $eval: as_slugid("node-package-cpu") }
|
|
in:
|
|
DEEPSPEECH_ARTIFACTS_ROOT: https://queue.taskcluster.net/v1/task/${darwin_amd64_build}/artifacts/public
|
|
DEEPSPEECH_NODEJS: https://queue.taskcluster.net/v1/task/${node_package_cpu}/artifacts/public
|
|
DEEPSPEECH_TEST_MODEL: https://queue.taskcluster.net/v1/task/${training}/artifacts/public/output_graph.pb
|
|
DEEPSPEECH_PROD_MODEL: https://github.com/reuben/DeepSpeech/releases/download/v0.6.0-alpha.0/output_graph.pb
|
|
DEEPSPEECH_PROD_MODEL_MMAP: https://github.com/reuben/DeepSpeech/releases/download/v0.6.0-alpha.0/output_graph.pbmm
|
|
EXPECTED_TENSORFLOW_VERSION: "${build.tensorflow_git_desc}"
|
|
|
|
command:
|
|
- - "/bin/bash"
|
|
- "--login"
|
|
- "-cxe"
|
|
- $let:
|
|
extraSystemSetup: { $eval: strip(str(build.system_setup)) }
|
|
in: >
|
|
export TASKCLUSTER_ARTIFACTS="$(pwd)/public/" &&
|
|
export TASKCLUSTER_ORIG_TASKDIR="$(pwd)" &&
|
|
(mkdir ../tc-workdir/ || rm -fr ../tc-workdir/*) && cd ../tc-workdir/ &&
|
|
(mv $TASKCLUSTER_ORIG_TASKDIR/homebrew/ homebrew/ || true) &&
|
|
(mv $TASKCLUSTER_ORIG_TASKDIR/homebrew.cache/ homebrew.cache/ || true) &&
|
|
export TASKCLUSTER_TASK_DIR="$(pwd)" &&
|
|
export TASKCLUSTER_TMP_DIR="$TASKCLUSTER_TASK_DIR/tmp" &&
|
|
export LC_ALL=C &&
|
|
export MACOSX_DEPLOYMENT_TARGET=10.10 &&
|
|
export HOMEBREW_NO_AUTO_UPDATE=1 &&
|
|
export PIP_DEFAULT_TIMEOUT=60 &&
|
|
env &&
|
|
trap "export TASKCLUSTER_TASK_EXIT_CODE=$? &&
|
|
mv $TASKCLUSTER_TASK_DIR/homebrew/ $TASKCLUSTER_ORIG_TASKDIR/homebrew/ &&
|
|
mv $TASKCLUSTER_TASK_DIR/homebrew.cache/ $TASKCLUSTER_ORIG_TASKDIR/homebrew.cache/ &&
|
|
cd $TASKCLUSTER_TASK_DIR/../ && rm -fr tc-workdir/ && exit $TASKCLUSTER_TASK_EXIT_CODE" EXIT &&
|
|
git clone --quiet ${event.head.repo.url} $TASKCLUSTER_TASK_DIR/DeepSpeech/ds/ &&
|
|
cd $TASKCLUSTER_TASK_DIR/DeepSpeech/ds && git checkout --quiet ${event.head.sha} &&
|
|
cd $TASKCLUSTER_TASK_DIR &&
|
|
source $TASKCLUSTER_TASK_DIR/DeepSpeech/ds/taskcluster/tc-brew-tests.sh && ${extraSystemSetup} &&
|
|
/bin/bash ${build.args.tests_cmdline}
|
|
|
|
mounts:
|
|
- cacheName: deepspeech-homebrew-bin
|
|
directory: homebrew/
|
|
- cacheName: deepspeech-homebrew-cache
|
|
directory: homebrew.cache/
|
|
|
|
metadata:
|
|
name: ${build.metadata.name}
|
|
description: ${build.metadata.description}
|
|
owner: ${event.head.user.email}
|
|
source: ${event.head.repo.url}
|