mirror of
https://github.com/servo/servo.git
synced 2025-07-04 14:03:39 +01:00
Full Servo
This commit is contained in:
parent
42bb1d756b
commit
e217d66c02
10 changed files with 54 additions and 73 deletions
|
@ -1,8 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
set -e
|
|
||||||
set -x
|
|
||||||
|
|
||||||
cd something-rust
|
|
||||||
cargo build --release
|
|
||||||
gzip -c target/release/something-rust > executable.gz
|
|
|
@ -1,5 +1,10 @@
|
||||||
# coding: utf8
|
# coding: utf8
|
||||||
|
|
||||||
|
# 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/.
|
||||||
|
|
||||||
|
|
||||||
import os.path
|
import os.path
|
||||||
from decisionlib import DecisionTask
|
from decisionlib import DecisionTask
|
||||||
|
|
||||||
|
@ -15,44 +20,62 @@ CARGO_CACHE = {
|
||||||
"cargo-git-cache": "/root/.cargo/git",
|
"cargo-git-cache": "/root/.cargo/git",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BUILD_ENV = {
|
||||||
|
"RUST_BACKTRACE": "1",
|
||||||
|
"RUSTFLAGS": "-Dwarnings",
|
||||||
|
"CARGO_INCREMENTAL": "0",
|
||||||
|
"SCCACHE_IDLE_TIMEOUT": "1200",
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
decision = DecisionTask(
|
decision = DecisionTask(
|
||||||
project_name="Taskcluster experiments for Servo", # Used in task names
|
project_name="Servo", # Used in task names
|
||||||
route_prefix="project.servo.servo-taskcluster-experiments",
|
route_prefix="project.servo.servo",
|
||||||
docker_image_cache_expiry="1 week",
|
|
||||||
worker_type="servo-docker-worker",
|
worker_type="servo-docker-worker",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# FIXME: remove this before merging in servo/servo
|
||||||
|
os.environ["GIT_URL"] = "https://github.com/SimonSapin/servo"
|
||||||
|
os.environ["GIT_REF"] = "refs/heads/master"
|
||||||
|
os.environ["GIT_SHA"] = "605d74c59b6de7ae2b535d42fde40405a96b67e0"
|
||||||
|
decision.docker_image_cache_expiry = "1 week"
|
||||||
|
decision.route_prefix = "project.servo.servo-taskcluster-experiments"
|
||||||
|
# ~
|
||||||
|
|
||||||
decision.create_task_with_in_tree_dockerfile(
|
decision.create_task_with_in_tree_dockerfile(
|
||||||
task_name="servo build task",
|
task_name="building for Linux x86_64 in dev mode + unit tests",
|
||||||
command="./servo-build-task.sh",
|
command="""
|
||||||
dockerfile=dockerfile("servo-x86_64-linux"),
|
./mach build --dev
|
||||||
|
./mach test-unit
|
||||||
|
""",
|
||||||
|
env=BUILD_ENV,
|
||||||
|
dockerfile=dockerfile("build-x86_64-linux"),
|
||||||
max_run_time_minutes=3 * 60,
|
max_run_time_minutes=3 * 60,
|
||||||
scopes=CARGO_CACHE_SCOPES,
|
scopes=CARGO_CACHE_SCOPES,
|
||||||
cache=CARGO_CACHE,
|
cache=CARGO_CACHE,
|
||||||
)
|
)
|
||||||
|
|
||||||
build_task = decision.create_task_with_in_tree_dockerfile(
|
decision.create_task_with_in_tree_dockerfile(
|
||||||
task_name="build task",
|
task_name="building for Linux x86_64 in release mode",
|
||||||
command="./build-task.sh",
|
command="""
|
||||||
dockerfile=dockerfile("servo-x86_64-linux"),
|
./mach build --release
|
||||||
max_run_time_minutes=20,
|
""",
|
||||||
|
env=BUILD_ENV,
|
||||||
|
dockerfile=dockerfile("build-x86_64-linux"),
|
||||||
|
max_run_time_minutes=3 * 60,
|
||||||
scopes=CARGO_CACHE_SCOPES,
|
scopes=CARGO_CACHE_SCOPES,
|
||||||
cache=CARGO_CACHE,
|
cache=CARGO_CACHE,
|
||||||
|
|
||||||
artifacts=[
|
|
||||||
("/repo/something-rust/executable.gz", "1 week"),
|
|
||||||
],
|
|
||||||
)
|
)
|
||||||
|
|
||||||
decision.create_task(
|
decision.create_task_with_in_tree_dockerfile(
|
||||||
task_name="run task",
|
task_name="tidy",
|
||||||
command="./run-task.sh",
|
command="""
|
||||||
image="buildpack-deps:bionic-scm",
|
./mach test-tidy --no-progress --all
|
||||||
|
./mach test-tidy --no-progress --self-test
|
||||||
|
""",
|
||||||
|
dockerfile=dockerfile("build-x86_64-linux"),
|
||||||
max_run_time_minutes=20,
|
max_run_time_minutes=20,
|
||||||
dependencies=[build_task],
|
|
||||||
env={"BUILD_TASK_ID": build_task},
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,14 @@
|
||||||
# coding: utf8
|
# coding: utf8
|
||||||
|
|
||||||
|
# Copyright 2018 The Servo Project Developers. See the COPYRIGHT
|
||||||
|
# file at the top-level directory of this distribution.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||||
|
# <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||||
|
# option. This file may not be copied, modified, or distributed
|
||||||
|
# except according to those terms.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Project-independent library for Taskcluster decision tasks
|
Project-independent library for Taskcluster decision tasks
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -1,9 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
set -e
|
|
||||||
set -x
|
|
||||||
|
|
||||||
./curl-artifact.sh $BUILD_TASK_ID public/executable.gz -o executable.gz
|
|
||||||
gunzip executable.gz
|
|
||||||
chmod +x executable
|
|
||||||
./executable
|
|
|
@ -1,9 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
set -e
|
|
||||||
set -x
|
|
||||||
|
|
||||||
git clone https://github.com/servo/servo/
|
|
||||||
cd servo
|
|
||||||
git checkout --depth 1 0a2c61da91e77102ae774075ec4126937a79f038
|
|
||||||
./mach build -d
|
|
14
something-rust/Cargo.lock
generated
14
something-rust/Cargo.lock
generated
|
@ -1,14 +0,0 @@
|
||||||
[[package]]
|
|
||||||
name = "matches"
|
|
||||||
version = "0.1.8"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "something-rust"
|
|
||||||
version = "0.1.0"
|
|
||||||
dependencies = [
|
|
||||||
"matches 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)",
|
|
||||||
]
|
|
||||||
|
|
||||||
[metadata]
|
|
||||||
"checksum matches 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)" = "7ffc5c5338469d4d3ea17d269fa8ea3512ad247247c30bd2df69e68309ed0a08"
|
|
|
@ -1,7 +0,0 @@
|
||||||
[package]
|
|
||||||
name = "something-rust"
|
|
||||||
version = "0.1.0"
|
|
||||||
authors = ["Simon Sapin"]
|
|
||||||
|
|
||||||
[dependencies]
|
|
||||||
matches = "0.1"
|
|
|
@ -1 +0,0 @@
|
||||||
1.28.0
|
|
|
@ -1,3 +0,0 @@
|
||||||
fn main() {
|
|
||||||
println!("Hello, world!");
|
|
||||||
}
|
|
Loading…
Add table
Add a link
Reference in a new issue