diff --git a/.taskcluster.yml b/.taskcluster.yml new file mode 100644 index 00000000000..cc79679d05f --- /dev/null +++ b/.taskcluster.yml @@ -0,0 +1,34 @@ +version: 0 +metadata: + name: servo + description: >- + A modern, high-performance browser engine designed for both application + and embedded use. + owner: '{{ event.head.user.email }}' + source: '{{ event.head.repo.url }}' +tasks: + - provisionerId: '{{ taskcluster.docker.provisionerId }}' + workerType: '{{ taskcluster.docker.workerType }}' + extra: + github: + events: [] + payload: + maxRunTime: 3600 + image: servobrowser/servo-linux-dev + command: + - /bin/bash + - '--login' + - '-c' + - '-x' + - >- + git clone {{event.head.repo.url}} servo && + cd servo && + git config advice.detachedHead false && + git checkout {{event.head.sha}} && + etc/ci/taskcluster-test.sh + metadata: + name: linux-tests + description: Run Linux tests. + owner: '{{ event.head.user.email }}' + source: '{{ event.head.repo.url }}' + diff --git a/etc/ci/taskcluster-test.sh b/etc/ci/taskcluster-test.sh new file mode 100755 index 00000000000..9bad1e7aa80 --- /dev/null +++ b/etc/ci/taskcluster-test.sh @@ -0,0 +1,23 @@ +#!/usr/bin/env bash + +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +set -o errexit +set -o nounset +set -o pipefail + +# Update this from the linux-dev builder in etc/ci/buildbot_steps.yml +./mach test-tidy --no-progress --all +./mach test-tidy --no-progress --self-test +env CC=gcc-5 CXX=g++-5 ./mach build --dev +env ./mach test-unit +env ./mach package --dev +env ./mach build-cef +env ./mach build --dev --no-default-features --features default-except-unstable +./mach build-geckolib +./mach test-stylo +bash ./etc/ci/lockfile_changed.sh +bash ./etc/ci/manifest_changed.sh +bash ./etc/ci/check_no_panic.sh