Commit graph

550 commits

Author SHA1 Message Date
bors-servo
74226836ba Auto merge of #9118 - dsprenkels:test-tidy-faster, r=Wafflespeanut
Add 'test-tidy-faster' command to ./mach

For issue #9088, this adds a `--changes` option to `./mach test-tidy`. If this option is set, `tidy.py` will only check files that have been modified since `FETCH_HEAD`.

Mention: @Wafflespeanut

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9118)
<!-- Reviewable:end -->
2016-01-08 23:13:00 +05:30
Daan Sprenkels
a9b8d47d5d add a --faster option to ./mach test-tidy
which will
- only check files changed since the last merge by bors
- and skip the wpt-lint
2016-01-07 16:28:13 +01:00
bors-servo
ea4206e362 Auto merge of #9150 - mbrubeck:run-android, r=larsbergstrom
Make "mach run" use --android by default when enabled in .servobuild

When `.servobuild` has `android = true`, the `mach run` command should default to running on Android.

r? @larsbergstrom

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9150)
<!-- Reviewable:end -->
2016-01-05 01:22:53 +05:30
Matt Brubeck
b9fc84ddcc Use build.android config in mach run 2016-01-04 10:52:06 -08:00
Simon Sapin
b2af8567fa Rename rust-snapshot-hash to rust-nightly-date
… and remove mentions of "snapshots".

We now use rust-lang.org nightly builds rather than our own snapshots.
2015-12-30 13:36:47 +00:00
Simon Sapin
856eea3a0e Remove "Servo does not bootstrap 32bit snapshots of Rust" message
We now use rust-lang.org nightly builds rather than our own snapshots.
2015-12-30 12:06:54 +00:00
Olaf Buddenhagen
f3cd5d2961 mach run --debug: Try using rust-gdb/rust-lldb if available
If the selected debugger (requested explicitly or detected by mozdebug)
is gdb or lldb, use rust-gdb or rust-lldb instead, if it's available in
the path and appears to be working.

(This should usually be the case when using the default debugger on
GNU/Linux or MacOS, as rust-gdb or rust-lldb is provided by the Rust
snapshot in use.)
2015-12-24 14:26:31 +01:00
Matt Brubeck
d7ba536ad6 Update mach run to use android_params file 2015-12-18 10:09:48 -08:00
Matt Brubeck
53871321a3 Add mach install command (Android-only for now) 2015-12-12 04:58:33 -08:00
Matt Brubeck
2a00eb6c08 Remove unused params from mach package command 2015-12-12 04:58:32 -08:00
bors-servo
e774a69440 Auto merge of #8626 - mskrzypkows:build_commands_android, r=larsbergstrom
Draft,  Move OpenSSL Android build to the target directory #8568

I've created a draft, please give me feedback. Is it good direction?

Fixes #8568

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8626)
<!-- Reviewable:end -->
2015-12-05 18:44:32 +05:30
bors-servo
3c0cd5eb06 Auto merge of #7734 - nerith:headless, r=metajack
Allow `./mach build` to enable Servo's headless mode

As mentioned in #7512 and #7637, the environment variable SERVO_HEADLESS
enables building the OSMesa version of Servo when it is set to 1.

Instead, this should be a command line option to mach's build command.

Fixes #7637.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7734)
<!-- Reviewable:end -->
2015-12-04 09:49:05 +05:30
Brandon Fairchild
2342b1bc6f Allow ./mach build-tests to enable Servo's headless mode
This allows mach's build-tests command to use the option --headless
instead of checking for the value of SERVO_HEADLESS.
2015-12-03 00:39:33 -05:00
Brandon Fairchild
ff853e0d4a Allow ./mach build to enable Servo's headless mode
As mentioned in #7512 and #7637, the environment variable SERVO_HEADLESS
enables building the OSMesa version of Servo when it is set to 1.

Instead, this should be a command line option to mach's build command.

Fixes #7637.
2015-12-02 23:40:31 -05:00
Maciej Skrzypkowski
62af4d36dd Move OpenSSL Android build to the target directory #8568 2015-12-02 09:34:58 +01:00
Sam Gibson
732ae5714f Fix the parsing of the chromium HSTS preload list
Urg! The Chromium HSTS preload JSON file contains single line comments. Previously these were filtered out with a very simple regex that just looked for '//' and removed the line. Now the file has added a couple fields that have URLs in them that were erroneously removed and caused the JSON parsing to fail. This commit slightly complicates the regex to fix this specific problem.

If this happens again, it's likely worth it to figure out how to use a real parser to remove the comments.

servo/servo#8760
2015-12-02 15:36:38 +11:00
Ms2ger
21f532758b Ensure the bootstrap-rust-docs and doc mach commands agree on the location of the Rust documentation. 2015-11-27 09:47:38 +01:00
Manish Goregaokar
dc0e467945 Upgrade to rustc 1.6.0-nightly (d5fde83ae 2015-11-12)
… and libc 0.2 and many other dependencies
2015-11-27 00:15:29 -05:00
Yanir Seroussi
4b71bc5c42 Reduce duplication in binary path determinition for Android target (fixes issue #8349) 2015-11-19 14:35:10 +11:00
nxnfufunezn
c7fab07d03 Make test-wpt run with RUST_BACKTRACE=1 by default #8194 2015-11-19 01:32:12 +05:30
Simon Sapin
8051f2ff8c Very hackish support for ./mach run --android 2015-11-13 21:35:50 +01:00
bors-servo
5fda719fa8 Auto merge of #8415 - mrobinson:create-wpt-relative, r=frewsxcv
Form relative reference URLs during create-wpt

Instead of always using the absolute path to the reference file when
creating new reference tests, create-wpt now creates relative URLs if
the files are in the same directory. This is the most common case for
new Servo tests. Also fix some missing quotation marks in the
create-wpt template.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8415)
<!-- Reviewable:end -->
2015-11-09 22:43:25 +05:30
Martin Robinson
bebbc80129 Form relative reference URLs during create-wpt
Instead of always using the absolute path to the reference file when
creating new reference tests, create-wpt now creates relative URLs if
the files are in the same directory. This is the most common case for
new Servo tests. Also fix some missing quotation marks in the
create-wpt template.
2015-11-08 10:32:35 -08:00
Simon Martin
3b087d406a Avoid UnboundLocalError upon "bogus" usage of ./mach create-wpt 2015-11-08 14:48:02 +01:00
Lars Bergstrom
5c5acc0249 Add CCACHE infra and turn it on in travis 2015-11-05 14:47:23 -06:00
Lars Bergstrom
17a6cb5873 New Android suppport 2015-11-04 16:29:39 -06:00
nxnfufunezn
03bf082fb3 Added support for using --features argument with --android 2015-10-30 22:08:04 +05:30
Brandon Fairchild
d1c2e79c89 Add clippy as a command to mach
This gives mach the ability to run clippy with `./mach clippy`.

Fixes #8134.
2015-10-21 19:21:20 -04:00
James Graham
9d41ddb72c Add create-wpt mach target to help with creating web-platform-tests 2015-10-20 10:43:55 +01:00
Tareq A Khandaker
4d994bbf4b Add clarity to missing notification module messages 2015-10-14 19:39:35 -04:00
Martin Robinson
f64a960ab1 Make Linux build notifications transient
Continuous non-transient notifications, common in workflows involving
many syntax errors, can completely take over the message tray. Making
Linux build notifications transient prevents them from stacking up in
Gnome Shell without having to click them individually.
2015-10-01 17:43:40 -07:00
bors-servo
ba2714f4f6 Auto merge of #7813 - servo:parallel-unit-tests, r=mbrubeck
Run all unit tests with just one Cargo command.

Upgrade Cargo to get https://github.com/rust-lang/cargo/pull/1828, and use it for unit tests. This allows Cargo to get some more parallelism when compiling the test crates’ dependencies.

`touch components/util/lib.rs && mach test-unit` on my machine goes from 149 seconds to 124.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7813)
<!-- Reviewable:end -->
2015-10-01 12:39:10 -06:00
Simon Sapin
9228b5011d Run all unit tests with just one Cargo command.
Upgrade Cargo to get https://github.com/rust-lang/cargo/pull/1828,
and use it for unit tests.
This allows Cargo to get some more parallelism
when compiling the test crates’ dependencies.

`touch components/util/lib.rs && mach test-unit` on my machine
goes from 149 seconds to 124.
2015-10-01 17:59:18 +02:00
Matt Brubeck
ab68d51eda Fixes for mach test-ref argument handling
* Change parameter from `name` to `include`. This is consistent with other
  test suites, and also fixes a bug in `mach test` caused by a conflicting
  keyword parameter in `Registrar.dispatch`.
* Allow any number of `include` arguments.
2015-10-01 08:54:18 -07:00
bors-servo
5d04f8dc8e Auto merge of #7809 - 6112:master, r=frewsxcv
Make `./mach test` work with unit tests

Fixes #7618.

Allows running a specific Rust test with one of:

```
./mach test tests/unit/net/http_loader.rs

./mach test-unit tests/unit/net/http_loader.rs
./mach test-unit tests/unit/net/http_loader
./mach test-unit net/http_loader
```

Allows running a whole package's tests with one of:

```
./mach test tests/unit/net

./mach test-unit tests/unit/net
```

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7809)
<!-- Reviewable:end -->
2015-09-30 20:30:26 -06:00
Nicolas
a844ce74f9 Allow ./mach test and ./mach test-unit to run unit tests with file path 2015-09-30 20:23:52 -04:00
bors-servo
9a4eb565c4 Auto merge of #7789 - 6112:master, r=mbrubeck
allow `./mach test` to run tests in tests/wpt/mozilla/

Allows running WPT tests in the tests/wpt/mozilla/ directory by using commands such as: 

```
./mach test tests/wpt/mozilla/tests/mozilla/union.html
```

Fixes #7772.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7789)
<!-- Reviewable:end -->
2015-09-29 19:58:28 -06:00
bors-servo
2049357d14 Auto merge of #7759 - jdramani:cmp_dromaeo_output_tool, r=mbrubeck
Add a tool for comparing Dromaeo outputs



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7759)
<!-- Reviewable:end -->
2015-09-29 18:58:28 -06:00
Nicolas
a3eee70727 allow ./mach test to run tests in tests/wpt/mozilla/ 2015-09-29 17:27:04 -04:00
Matt Brubeck
aa7e9ddb73 Fix build notifications in Python 2.x on Linux
In Python 2.x on Linux, `sys.platform == 'linux2'`.

https://docs.python.org/2/library/sys.html#sys.platform
2015-09-28 10:01:29 -07:00
Jaydeep
19be6f9f8e fix issue#6888 2015-09-27 10:18:15 -07:00
Tamir Duberstein
b6bbd75479 mach: fix OS X notifications 2015-09-26 16:14:45 -04:00
Ms2ger
65e50be657 Fix a comparison that should be an assignment in host_triple(). 2015-09-23 09:40:08 +02:00
bors-servo
2733060564 Auto merge of #7565 - akiss77:config-gold, r=SimonSapin
Make the use of gold linker configurable

Currently, ld.gold is always used for linking if found on the
system. There are some cases however when one may want to opt out
from using it. This patch adds the boolean field `rustc-with-gold`
to the `[tools]` section of `.servobuild`, which if set false,
disables the use of ld.gold.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7565)
<!-- Reviewable:end -->
2015-09-08 13:57:13 -06:00
Akos Kiss
9afa930728 Make the use of gold linker configurable
Currently, ld.gold is always used for linking if found on the
system. There are some cases however when one may want to opt out
from using it. This patch adds the boolean field `rustc-with-gold`
to the `[tools]` section of `.servobuild`, which if set false,
disables the use of ld.gold.
2015-09-08 17:10:46 +00:00
bors-servo
c442132196 Auto merge of #7494 - wilmoz:upgradeWptRunner, r=jdm
Add a mach command to upgrade wptrunner

https://github.com/servo/servo/issues/7491

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7494)
<!-- Reviewable:end -->
2015-09-08 08:41:05 -06:00
Josh Matthews
152b76b963 Remove obsolete method call that breaks ./mach update-css. 2015-09-03 00:37:44 -04:00
wilmoz
adbc6d045b Add a mach command to upgrade wptrunner 2015-09-02 12:29:56 -05:00
Corey Farwell
e38df50bbf Revert "Revert "Auto merge of #7103 - frewsxcv:python-venv, r=metajack" for breaking web-platform-tests."
This reverts commit 47d6d958f5.
2015-09-02 09:34:01 -04:00
Josh Matthews
7457dbf3fc Remove hack for android builders now that build is successful once more. 2015-09-01 09:10:25 -04:00