Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

Commit

Permalink
switch from Travis-CI to Taskcluster (and drop multiple HAPI version …
Browse files Browse the repository at this point in the history
…checks)
  • Loading branch information
djmitche committed Oct 22, 2020
1 parent 668dd86 commit 4772624
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 20 deletions.
37 changes: 37 additions & 0 deletions .taskcluster.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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
20 changes: 0 additions & 20 deletions .travis.yml

This file was deleted.

0 comments on commit 4772624

Please sign in to comment.