DeepSpeech/.taskcluster.yml

66 строки
2.3 KiB
YAML
Исходник Обычный вид История

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:
- provisionerId: "proj-deepspeech"
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
- tag
branches:
- master
2017-09-18 12:18:04 +03:00
scopes: [
"queue:create-task:highest:proj-deepspeech/*",
"queue:route:index.project.deepspeech.*",
"index:insert-task:project.deepspeech.*",
"queue:scheduler-id:taskcluster-github",
"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-04-05 11:34:16 +03:00
payload:
2017-09-18 12:18:04 +03:00
maxRunTime: 600
image: "ubuntu:16.04"
features:
taskclusterProxy: true
env:
2019-02-17 03:19:30 +03:00
TC_DECISION_SHA: ef67832e6657f43e139a10f37eb326a7d9d96dad
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 &&
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 &&
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 &&
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 }}"