From 63d5f78cb80baa0916bfa6a1ece5cb34bf9e1277 Mon Sep 17 00:00:00 2001 From: "Dustin J. Mitchell" Date: Sat, 24 Nov 2018 16:55:01 -0500 Subject: [PATCH] add .taskcluster.yml --- .taskcluster.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .taskcluster.yml diff --git a/.taskcluster.yml b/.taskcluster.yml new file mode 100644 index 000000000..b3566f886 --- /dev/null +++ b/.taskcluster.yml @@ -0,0 +1,28 @@ +version: 0 +tasks: + - provisionerId: '{{ taskcluster.docker.provisionerId }}' + workerType: '{{ taskcluster.docker.workerType }}' + extra: + github: + events: + - pull_request.opened + - pull_request.reopened + - pull_request.synchronize + payload: + maxRunTime: 3600 + image: 'rust:latest' + command: + - /bin/bash + - '-c' + - >- + git clone {{event.head.repo.url}} repo && + cd repo && + git config advice.detachedHead false && + git checkout {{event.head.sha}} && + cargo test + metadata: + name: Test + description: 'Run tests' + owner: '{{ event.head.user.email }}' + source: '{{ event.head.repo.url }}' +allowPullRequests: collaborators