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

Update .taskcluster.yml with new settings. #251

Merged
merged 1 commit into from
Feb 13, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
65 changes: 36 additions & 29 deletions .taskcluster.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
version: 0
allowPullRequests: public
metadata:
name: Balrog
description: Balrog CI Tasks
Expand All @@ -22,7 +23,9 @@ tasks:
github:
env: true
events:
- pull_request.*
- pull_request.opened
- pull_request.synchronize
- pull_request.reopened
- push
metadata:
name: Balrog back-end tests
Expand All @@ -47,64 +50,68 @@ tasks:
github:
env: true
events:
- pull_request.*
- pull_request.opened
- pull_request.synchronize
- pull_request.reopened
- push
metadata:
name: Balrog front-end tests
description: Balrog JavaScript tests
owner: "{{ event.head.user.email }}"
source: "{{ event.head.repo.url }}"

# TODO: make this depend on the test task after https://bugzilla.mozilla.org/show_bug.cgi?id=1252144 is fixed
- provisionerId: "{{ taskcluster.docker.provisionerId }}"
workerType: "{{ taskcluster.docker.workerType }}"
scopes:
- secrets:get:repo:github.com/mozilla/balrog:dockerhub
payload:
maxRunTime: 3600
image: "taskcluster/image_builder:0.1.3"
features:
dind: true
taskclusterProxy: true
maxRunTime: 1200
image: "rail/python-test-runner"
env:
NO_VOLUME_MOUNT: 1
command:
- "/bin/bash"
- "-c"
- "git clone $GITHUB_HEAD_REPO_URL && cd balrog && git checkout $GITHUB_HEAD_BRANCH && scripts/push-dockerimage.sh"
- "git clone $GITHUB_HEAD_REPO_URL && cd balrog && git checkout $GITHUB_HEAD_BRANCH && cd agent && bash run-tests.sh"
features:
dind: true
extra:
github:
env: true
events:
- pull_request.opened
- pull_request.synchronize
- pull_request.reopened
- push
branches:
- master
metadata:
name: Balrog Docker Image Creation
description: Balrog Docker Image Creation
name: Balrog Agent Tests
description: Balrog Agent Tests
owner: "{{ event.head.user.email }}"
source: "{{ event.head.repo.url }}"

# TODO: make this depend on the test task after https://bugzilla.mozilla.org/show_bug.cgi?id=1252144 is fixed
- provisionerId: "{{ taskcluster.docker.provisionerId }}"
workerType: "{{ taskcluster.docker.workerType }}"
scopes:
- secrets:get:repo:github.com/mozilla/balrog:dockerhub
payload:
maxRunTime: 1200
image: "rail/python-test-runner"
env:
NO_VOLUME_MOUNT: 1
maxRunTime: 3600
image: "taskcluster/image_builder:0.1.3"
features:
dind: true
taskclusterProxy: true
command:
- "/bin/bash"
- "-c"
- "git clone $GITHUB_HEAD_REPO_URL && cd balrog && git checkout $GITHUB_HEAD_BRANCH && cd agent && bash run-tests.sh"
features:
dind: true
- "git clone $GITHUB_HEAD_REPO_URL && cd balrog && git checkout $GITHUB_HEAD_BRANCH && scripts/push-dockerimage.sh"
extra:
github:
env: true
events:
- pull_request.*
- push
branches:
- master
metadata:
name: Balrog Agent Tests
description: Balrog Agent Tests
name: Balrog Docker Image Creation
description: Balrog Docker Image Creation
owner: "{{ event.head.user.email }}"
source: "{{ event.head.repo.url }}"

Expand Down Expand Up @@ -183,8 +190,8 @@ tasks:
events:
- release
metadata:
name: Balrog Docker Image Creation
description: Balrog Docker Image Creation
name: Balrog Docker Image Creation (release event)
description: Balrog Docker Image Creation (release event)
owner: "{{ event.head.user.email }}"
source: "{{ event.head.repo.url }}"

Expand All @@ -209,7 +216,7 @@ tasks:
events:
- release
metadata:
name: Balrog Agent Docker Image Creation
description: Balrog Agent Docker Image Creation
name: Balrog Agent Docker Image Creation (release event)
description: Balrog Agent Docker Image Creation (release event)
owner: "{{ event.head.user.email }}"
source: "{{ event.head.repo.url }}"