From 4772624a7d26e8e6e67be3b8f9a01f1f82f7e345 Mon Sep 17 00:00:00 2001 From: "Dustin J. Mitchell" Date: Thu, 22 Oct 2020 22:07:48 +0000 Subject: [PATCH] switch from Travis-CI to Taskcluster (and drop multiple HAPI version checks) --- .taskcluster.yml | 37 +++++++++++++++++++++++++++++++++++++ .travis.yml | 20 -------------------- 2 files changed, 37 insertions(+), 20 deletions(-) create mode 100644 .taskcluster.yml delete mode 100755 .travis.yml diff --git a/.taskcluster.yml b/.taskcluster.yml new file mode 100644 index 0000000..d015090 --- /dev/null +++ b/.taskcluster.yml @@ -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 diff --git a/.travis.yml b/.travis.yml deleted file mode 100755 index c4d91d0..0000000 --- a/.travis.yml +++ /dev/null @@ -1,20 +0,0 @@ -language: node_js - -node_js: - - "12" - - "node" - -sudo: false - -install: - - "npm install" - - "npm install @hapi/hapi@$HAPI_VERSION" - -env: - - HAPI_VERSION="18" - - HAPI_VERSION="19" - -os: - - "linux" - - "osx" - - "windows"