Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the community-tc deployment for CI #9

Merged
merged 1 commit into from
Oct 10, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 32 additions & 25 deletions .taskcluster.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,37 @@
version: 0
metadata:
name: "json-parameterization test"
description: "tests"
owner: "{{ event.head.user.email }}"
source: "{{ event.head.repo.url }}"

version: 1
policy:
pullRequests: public
tasks:
- provisionerId: "{{ taskcluster.docker.provisionerId }}"
workerType: "{{ taskcluster.docker.workerType }}"
extra:
github:
env: true
events:
- pull_request.opened
- pull_request.synchronize
- pull_request.reopened
- push
$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.clone_url}
else: ${event.repository.clone_url}
in:
- provisionerId: 'proj-taskcluster'
workerType: 'ci'
created: {$fromNow: ''}
deadline: {$fromNow: '1 hour'}
payload:
maxRunTime: 3600
image: "node:10"
image: node:10
command:
- "/bin/bash"
- "-lc"
- "git clone {{event.head.repo.url}} repo && cd repo && git checkout {{event.head.sha}} && yarn install && yarn test"
- /bin/bash
- '--login'
- '-c'
- >-
git clone ${repository} repo &&
cd repo &&
git config advice.detachedHead false &&
git checkout ${head_rev} &&
yarn &&
yarn test
metadata:
name: "json-parameterization test"
description: "Library for building taskcluster azure"
owner: "{{ event.head.user.email }}"
source: "{{ event.head.repo.url }}"
name: test
description: Tests for json-parameterization
owner: nobody@mozilla.com
source: https://github.com/taskcluster/json-parameterization