2017-04-05 11:34:16 +03:00
|
|
|
# The version is always required
|
|
|
|
version: 0
|
|
|
|
# Top level metadata is always required
|
|
|
|
metadata:
|
2017-09-18 12:18:04 +03:00
|
|
|
name: "DeepSpeech"
|
|
|
|
description: "DeepSpeech builds"
|
2017-04-05 11:34:16 +03:00
|
|
|
owner: "{{ event.head.user.email }}" # the user who sent the pr/push e-mail will be inserted here
|
|
|
|
source: "{{ event.head.repo.url }}" # the repo where the pr came from will be inserted here
|
|
|
|
tasks:
|
2019-11-02 00:12:00 +03:00
|
|
|
- provisionerId: "proj-deepspeech"
|
2020-08-03 18:18:11 +03:00
|
|
|
workerType: "ci-decision-task"
|
2017-04-05 11:34:16 +03:00
|
|
|
extra:
|
|
|
|
github:
|
|
|
|
env: true
|
|
|
|
events:
|
|
|
|
- pull_request.opened
|
|
|
|
- pull_request.synchronize
|
|
|
|
- pull_request.reopened
|
|
|
|
- push
|
2018-04-28 02:14:50 +03:00
|
|
|
- tag
|
2017-09-28 08:49:20 +03:00
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
2017-09-18 12:18:04 +03:00
|
|
|
scopes: [
|
2019-11-02 00:12:00 +03:00
|
|
|
"queue:create-task:highest:proj-deepspeech/*",
|
2020-08-10 18:04:59 +03:00
|
|
|
"queue:route:index.project.mozilla-voice-stt.*",
|
|
|
|
"index:insert-task:project.mozilla-voice-stt.*",
|
2017-09-19 16:48:26 +03:00
|
|
|
"queue:scheduler-id:taskcluster-github",
|
2019-07-11 15:55:15 +03:00
|
|
|
"generic-worker:cache:deepspeech-macos-pyenv",
|
2020-02-25 16:11:20 +03:00
|
|
|
"docker-worker:capability:device:kvm"
|
2017-09-18 12:18:04 +03:00
|
|
|
]
|
2017-11-03 14:57:23 +03:00
|
|
|
|
2017-04-05 11:34:16 +03:00
|
|
|
payload:
|
2017-09-18 12:18:04 +03:00
|
|
|
maxRunTime: 600
|
2019-04-12 01:19:22 +03:00
|
|
|
image: "ubuntu:16.04"
|
2017-11-28 15:10:27 +03:00
|
|
|
|
2017-07-31 18:28:28 +03:00
|
|
|
features:
|
|
|
|
taskclusterProxy: true
|
2017-11-28 15:10:27 +03:00
|
|
|
|
|
|
|
env:
|
2019-02-17 03:19:30 +03:00
|
|
|
TC_DECISION_SHA: ef67832e6657f43e139a10f37eb326a7d9d96dad
|
2017-11-28 15:10:27 +03:00
|
|
|
|
2017-04-05 11:34:16 +03:00
|
|
|
command:
|
|
|
|
- "/bin/bash"
|
|
|
|
- "--login"
|
|
|
|
- "-cxe"
|
|
|
|
- >
|
2020-05-02 14:13:07 +03:00
|
|
|
echo "deb http://archive.ubuntu.com/ubuntu/ xenial-updates main" > /etc/apt/sources.list.d/xenial-updates.list &&
|
2019-04-12 01:19:22 +03:00
|
|
|
apt-get -qq update && apt-get -qq -y install git python3-pip curl sudo &&
|
2017-04-05 11:34:16 +03:00
|
|
|
adduser --system --home /home/build-user build-user &&
|
2017-09-07 14:43:22 +03:00
|
|
|
cd /home/build-user/ &&
|
2017-09-18 12:18:04 +03:00
|
|
|
echo -e "#!/bin/bash\nset -xe\nenv && id && mkdir ~/DeepSpeech/ && git clone --quiet {{event.head.repo.url}} ~/DeepSpeech/ds/ && cd ~/DeepSpeech/ds && git checkout --quiet {{event.head.sha}}" > /tmp/clone.sh && chmod +x /tmp/clone.sh &&
|
2017-04-05 11:34:16 +03:00
|
|
|
sudo -H -u build-user /bin/bash /tmp/clone.sh &&
|
2019-06-14 16:27:32 +03:00
|
|
|
sudo -H -u build-user --preserve-env /bin/bash /home/build-user/DeepSpeech/ds/taskcluster/tc-schedule.sh
|
2017-04-05 11:34:16 +03:00
|
|
|
artifacts:
|
|
|
|
"public":
|
|
|
|
type: "directory"
|
|
|
|
path: "/tmp/artifacts/"
|
|
|
|
expires: "{{ '7 days' | $fromNow }}"
|
|
|
|
# Each task also requires explicit metadata
|
|
|
|
metadata:
|
2017-09-18 12:18:04 +03:00
|
|
|
name: "DeepSpeech Decision Task"
|
|
|
|
description: "DeepSpeech Decision Task: triggers everything."
|
2017-08-03 17:23:39 +03:00
|
|
|
owner: "{{ event.head.user.email }}"
|
|
|
|
source: "{{ event.head.repo.url }}"
|