2021-01-04 12:46:15 +03:00
|
|
|
version: 1
|
|
|
|
policy:
|
|
|
|
pullRequests: public
|
|
|
|
tasks:
|
|
|
|
$let:
|
|
|
|
user: ${event.sender.login}
|
|
|
|
|
|
|
|
head_branch:
|
|
|
|
$if: 'tasks_for == "github-pull-request"'
|
|
|
|
then: ${event.pull_request.head.ref}
|
|
|
|
else:
|
|
|
|
$if: 'tasks_for == "github-push"'
|
|
|
|
then: ${event.ref}
|
|
|
|
else: ${event.release.target_commitish}
|
|
|
|
|
|
|
|
head_rev:
|
|
|
|
$if: 'tasks_for == "github-pull-request"'
|
|
|
|
then: ${event.pull_request.head.sha}
|
|
|
|
else:
|
|
|
|
$if: 'tasks_for == "github-push"'
|
|
|
|
then: ${event.after}
|
|
|
|
else: ${event.release.tag_name}
|
|
|
|
|
|
|
|
repository:
|
|
|
|
$if: 'tasks_for == "github-pull-request"'
|
|
|
|
then: ${event.pull_request.head.repo.html_url}
|
|
|
|
else: ${event.repository.html_url}
|
|
|
|
in:
|
2022-03-16 13:50:31 +03:00
|
|
|
- taskId: { $eval: as_slugid("tests_task") }
|
|
|
|
created: { $fromNow: "" }
|
|
|
|
deadline: { $fromNow: "1 hour" }
|
2021-01-04 12:46:15 +03:00
|
|
|
provisionerId: proj-relman
|
|
|
|
workerType: ci
|
|
|
|
payload:
|
|
|
|
maxRunTime: 3600
|
|
|
|
image: python:3.7
|
|
|
|
env:
|
|
|
|
TOX_ENV: py37
|
2021-01-04 13:14:36 +03:00
|
|
|
COVERALLS_REPO_TOKEN: VWnjgqWLHfmgSQMJPFdIRYIG5ontiAGl6
|
2021-01-04 12:46:15 +03:00
|
|
|
command:
|
|
|
|
- "/bin/bash"
|
|
|
|
- "-lcx"
|
|
|
|
- "git clone --quiet ${repository} &&
|
2023-04-26 16:27:50 +03:00
|
|
|
cd bugbot &&
|
2022-03-16 13:50:31 +03:00
|
|
|
git -c advice.detachedHead=false checkout ${head_rev} &&
|
|
|
|
pip install --quiet -r requirements-test.txt &&
|
|
|
|
pre-commit run --all-files --show-diff-on-failure &&
|
|
|
|
tox -e $TOX_ENV &&
|
|
|
|
coveralls"
|
2021-01-04 12:46:15 +03:00
|
|
|
metadata:
|
2023-04-26 16:27:50 +03:00
|
|
|
name: bugbot tests
|
|
|
|
description: bugbot tests
|
2021-01-04 12:48:26 +03:00
|
|
|
owner: mcastelluccio@mozilla.com
|
|
|
|
source: ${repository}/raw/${head_rev}/.taskcluster.yml
|