File: .taskcluster.yml

package info (click to toggle)
node-hawk 9.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 292 kB
  • sloc: javascript: 2,797; makefile: 2
file content (37 lines) | stat: -rw-r--r-- 947 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
version: 1
policy:
  pullRequests: public
tasks:
  $let:
    head_rev:
      $if: 'tasks_for == "github-pull-request"'
      then: ${event.pull_request.head.sha}
      else: ${event.after}
    repository:
      $if: 'tasks_for == "github-pull-request"'
      then: ${event.pull_request.head.repo.html_url}
      else: ${event.repository.html_url}
  in:
  - provisionerId: 'proj-taskcluster'
    workerType: 'ci'
    created: {$fromNow: ''}
    deadline: {$fromNow: '1 hour'}
    payload:
      maxRunTime: 3600
      image: node:12
      command:
        - /bin/bash
        - '--login'
        - '-c'
        - >-
          git clone ${repository} repo &&
          cd repo &&
          git config advice.detachedHead false &&
          git checkout ${head_rev} &&
          yarn &&
          yarn test
    metadata:
      name: test
      description: Tests for hawk
      owner: nobody@mozilla.com
      source: https://github.com/mozilla/hawk