Bug 1289625 - Use checkout-gecko-and-run in mozharness-gecko task; r?dustin
The first thing we do is switch from the desktop-test image to the
lint image: the mozharness tests don't need anything in the
desktop-test image. This does mean converting from Ubuntu 12.04
to 16.04. I'm fine upgrading to a newer operating system by
4 years :)
Once we're on the lint image, we switch to use checkout-gecko-and-run.
The mozharness-gecko task now does version control just like
eslint-gecko and mozlint-flake8.
MozReview-Commit-ID: 6mzAZ7LSBWl
--- a/taskcluster/ci/legacy/tasks/tests/mozharness-gecko.yml
+++ b/taskcluster/ci/legacy/tasks/tests/mozharness-gecko.yml
@@ -1,17 +1,17 @@
---
$inherits:
from: 'tasks/lint.yml'
variables:
build_product: 'lint'
build_name: 'mozharness-tox'
build_type: 'opt'
-docker-image: desktop-test
+docker-image: lint
task:
metadata:
name: '[TC] - Mozharness Tox'
description: 'Mozharness integration tests'
scopes:
- 'docker-worker:cache:level-{{level}}-{{project}}-dotcache'
@@ -21,23 +21,24 @@ task:
path: 'public/image.tar'
taskId:
task-reference: "<docker-image>"
cache:
level-{{level}}-{{project}}-dotcache: '/home/worker/.cache'
command:
+ - /home/worker/bin/checkout-gecko-and-run
+ - /home/worker/workspace/gecko
- bash
- -cx
- >
- tc-vcs checkout ./gecko {{base_repository}} {{head_repository}} {{head_rev}} {{head_ref}} &&
- cd gecko/testing/mozharness &&
- pip install tox &&
- tox -e py27-hg3.7
+ cd /home/worker/workspace/gecko/testing/mozharness &&
+ /usr/bin/pip2 install tox &&
+ /home/worker/.local/bin/tox -e py27-hg3.7
extra:
extra:
build_product: '{{build_product}}'
locations:
build: null
tests: null
treeherder:
machine: