Commit graph

1050 commits

Author SHA1 Message Date
Tetsuharu OHZEKI
cb90f22c3e Override always 'CARGO_HOME' env variable.
This use always `cargo-home-dir` in `/.servobuild`
even if you set `CARGO_HOME` in your shell.

If you use [racer][racer] with [rustup (multirust.rs)][rustup],
you may set `CARGO_HOME` env variable.
Then the previous code would be a problem which does not use
`cargo-home-dir` in `/.servobuild`.

[racer]: https://github.com/phildawes/racer
[rustup]: https://github.com/rust-lang-nursery/rustup.rs
2016-05-10 02:18:28 +09:00
bors-servo
c3323f3c70 Auto merge of #11073 - autrilla:tox, r=Ms2ger
Added tox.ini

The default maximum line length Python linters use is 79, so a bunch of editor plugins complain about line lengths, unless you have a tox.ini telling the linter to ignore line lengths (E501) explicitly.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11073)
<!-- Reviewable:end -->
2016-05-09 01:37:09 -07:00
Adrian Utrilla
90b224eff4
Added tox.ini 2016-05-08 12:10:48 +02:00
Adrian Utrilla
0fff10c7e9
Mach now shows stderr when a virtualenv or pip call fails (fixes #11055) 2016-05-07 17:36:27 +02:00
Matt Brubeck
9b680ad58a Update hyper, openssl, wayland, threadpool, offscreen_gl_context
Gets rid of duplicate versions of bitflags and xml-rs!
2016-05-06 08:42:00 -07:00
bors-servo
283eb41296 Auto merge of #11013 - antrik:rust-gdb-cleanup, r=Ms2ger
mach run --debug: Use nicer syntax in rust-gdb/rust-lldb check

After actually reading a Python tutorial, I realised this can be handled
in a more elegant fashion :-)

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11013)
<!-- Reviewable:end -->
2016-05-06 05:43:58 -07:00
bors-servo
a233d1e39b Auto merge of #10916 - mmatyas:useneon, r=aneeshusa
Use NEON build flag on ARM and AArch64

The NEON flag is already used when building for Android, this patch enables it on other ARM devices too.

Note that this patch just adds the build flag to the compilation, for actually enabling the SIMD code in Servo, we'll also need #10900 (but it's not a dependency).

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10916)
<!-- Reviewable:end -->
2016-05-05 14:44:03 -07:00
Mátyás Mustoha
0bcf35c5a8 Use NEON build flag on ARM and AArch64 2016-05-05 12:17:37 +02:00
Mátyás Mustoha
200af79c4b Improve build target argument handling 2016-05-05 12:17:36 +02:00
Olaf Buddenhagen
15066559a5 mach run --debug: Cleanup: Use nicer syntax in rust-gdb/rust-lldb check
Follow-up on f3cd5d2961 : after actually
reading a Python tutorial, I realised this can be handled in a more
elegant fashion :-)
2016-05-04 22:13:42 +02:00
Fabrice Desré
5b328623af Make build time display more human friendly 2016-05-04 12:58:53 -07:00
Matt Brubeck
e1386cad6f Upgrade to OpenSSL 1.0.1t on Android 2016-05-03 15:46:18 -07:00
Corey Farwell
1bdc999e53 Fix styling for Markdown headers. 2016-05-02 22:20:49 -04:00
Corey Farwell
d71ac89110 Remove reference to no-longer-existing directory.
https://github.com/servo/servo/pull/10976
2016-05-02 22:20:00 -04:00
bors-servo
e39ed932cb Auto merge of #10976 - frewsxcv:novendor-mach, r=mbrubeck
Upgrade mach to 0.6; stop vendoring mach.

When I originally rewrote Servo's mach bootstrapping (using virtualenv
w/ requirements.txt in #7103), I didn't specify mach as a requirement
because a new version hadn't been published in a while. Now that 0.6
is out, I asked the mach maintainers to publish a new version on PyPI,
so now we can fetch it like the other Python dependencies.

Fixes https://github.com/servo/servo/issues/10728.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10976)
<!-- Reviewable:end -->
2016-05-02 18:07:25 -07:00
Corey Farwell
7725e644e9 Upgrade mach to 0.6; stop vendoring mach.
When I originally rewrote Servo's mach bootstrapping (using virtualenv
w/ requirements.txt in #7103), I didn't specify mach as a requirement
because a new version hadn't been published in a while. Now that 0.6
is out, I asked the mach maintainers to publish a new version on PyPI,
so now we can fetch it like the other Python dependencies.

Fixes https://github.com/servo/servo/issues/10728.
2016-05-02 19:27:52 -04:00
Matt Brubeck
a2b0585ffd Update lazy_static, selectors, string_cache, futf, quickersort 2016-05-02 16:05:31 -07:00
bors-servo
491b5ff47e Auto merge of #10923 - askeing:fix_10922, r=jdm
Remove dir by shutil.rmtree, remove file by os.remove

fix #10922

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10923)
<!-- Reviewable:end -->
2016-04-30 03:42:18 -07:00
bors-servo
a98a53925f Auto merge of #10901 - askeing:fix_10882, r=jdm
Handle HTTP specific errors then other errors when downloading rustc

fix #10882

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10901)
<!-- Reviewable:end -->
2016-04-30 01:54:44 -07:00
askeing
3103cd4b34 Handle HTTP specific errors then other errors when downloading rustc 2016-04-30 12:45:32 +09:00
askeing
c4b0e20bc5 Remove dir by shutil.rmtree, remove file by os.remove 2016-04-29 23:18:28 +09:00
bors-servo
f932db34c8 Auto merge of #10892 - CorcovadoMing:patch-1, r=Wafflespeanut
Pass --no-patch by default to update_css

fix #10884 according to #9666

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10892)
<!-- Reviewable:end -->
2016-04-28 16:19:35 -07:00
Simon Sapin
a3b271266c Make css-properties.json checking a proper unit test. 2016-04-28 15:41:30 +02:00
CorcovadoMing
08a20e3be9 pass --no-patch by default to update_css 2016-04-28 19:58:30 +08:00
askeing
33d8e21cff Adding parameter to tidy for skipping print text when running tests 2016-04-26 01:27:08 +09:00
Maciej Skrzypkowski
f090425c24 Test for tidy.check_lock function #9152 2016-04-25 08:32:52 +02:00
bors-servo
04f8ae56db Auto merge of #10786 - zwn:tidy-modelines, r=Manishearth
tidy check for vim and emacs modelines

See #10719.

It skips *.webidl files for now since I am not sure where they come from and if they should be edited in tree or not.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10786)
<!-- Reviewable:end -->
2016-04-22 21:46:30 -07:00
bors-servo
0a3a50a129 Auto merge of #10706 - zwn:unused-extern-crates, r=nox
Turn on unused-extern-crates warning.

As discussed in #9256. It should solve second half of the issue.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10706)
<!-- Reviewable:end -->
2016-04-22 13:40:38 -07:00
Zbynek Winkler
4bdc895d95 Turn on unused-extern-crates warning. 2016-04-22 22:20:07 +02:00
Zbynek Winkler
39780ca39f Report lines starting with &&. 2016-04-22 14:28:20 +02:00
Zbynek Winkler
01b111c43e Add newline to the output.
The last line of output from tidy did not end with a newline if some
errors were reported.
2016-04-22 14:28:17 +02:00
bors-servo
6f801e3f3f Auto merge of #10758 - jdm:tidy_check_completeness, r=Wafflespeanut
Ensure that we aren't missing any errors in the tidy self-test.

r? @Wafflespeanut

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10758)
<!-- Reviewable:end -->
2016-04-22 02:40:29 -07:00
Per Lundberg
4643737a1b Applied a bunch of suggestions from Simon. 2016-04-21 22:42:35 +03:00
Per Lundberg
d0489f1160 Improve properties.mako.rs file structure, take 2
This is a new attempt of #10586, after Simon Sapin's great cleanups in #10749 has landed. I have adjusted the changes to the new structure that was introduced, and also only done a few of the longhand ones. Will certainly continue on this as soon as we have a basic agreement that this style is reasonable.
2016-04-21 22:42:35 +03:00
Zbynek Winkler
b6b8ac6cd3 tidy check for vim and emacs modelines.
See https://github.com/servo/servo/issues/10719.
2016-04-21 17:52:09 +02:00
bors-servo
9c172f49d0 Auto merge of #10631 - servo:wptrunner-20160415, r=KiChjang
Update wptrunner.

Fixes #10540.
Fixes #10392.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10631)
<!-- Reviewable:end -->
2016-04-21 13:54:19 +05:30
Zbynek Winkler
7002fbedd7 Ensure virtualenv activates.
There are two changes:
 * remove quoting which causes virtuaenv not activate
 * check virtualenv actually activated

If the quoting added in the fix in #8394 (4ff8d3ad9c) kicks in, it
causes virtualenv to fail to activate.

For the common case it is no op:
```python
>>> from pipes import quote
>>> print quote('common/case')
common/case
```

When the path actually needs quoting, this is what happens:

```python
>>> print quote('test spaces')
'test spaces'
>>> print quote('windows\\path')
'windows\\path'
```

Note the embedded quotes.

Virtualenv in activate_this.py uses __file__ to build the path that
should be added to PATH:

```python
>>> print os.getcwd()
C:\software\git
>>> print os.path.abspath(quote('windows\\path'))
C:\software\git\'windows\path'
>>>
```

The constructed path is not valid. Adding it at the beginning of PATH
has no effect. This issue affects any case when the call to `quote`
kicks in.
2016-04-21 08:23:03 +02:00
Josh Matthews
c7d5a2b311 Ensure that we aren't missing any errors in the tidy self-test. 2016-04-20 13:29:39 -04:00
Ms2ger
92d8f5c552 Improve mach wpt-upgrade. 2016-04-20 16:06:17 +02:00
Simon Sapin
bf8edd1596 Be sligthly more verbose about css-properties.json in test-unit 2016-04-20 15:42:45 +02:00
Simon Sapin
7787b21e30 Move Mako-related files into a new sub-directory.
There’s gonna be more of them.
2016-04-20 14:49:27 +02:00
Simon Sapin
b7eb720c74 Merge list_properties.py into build_properties_rs.py 2016-04-20 14:41:42 +02:00
bors-servo
a129ce1bcc Auto merge of #10715 - edunham:tidy-licenses, r=larsbergstrom
Allow another wording of apache2/MIT (used by gaol)

r? @larsbergstrom

need this for https://github.com/servo/servo/issues/10636

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10715)
<!-- Reviewable:end -->
2016-04-20 02:00:16 +05:30
edunham
eb198d76e7 Allow another wording of apache2/MIT (used by gaol) 2016-04-19 11:11:50 -07:00
bors-servo
f73c6143d5 Auto merge of #10689 - rwakulszowa:bootstrap-disconnected-message, r=Wafflespeanut
Handle URLError in download() #10679

Print a human-friendly message if there is no internet connection.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10689)
<!-- Reviewable:end -->
2016-04-19 08:23:36 +05:30
bors-servo
4d80e0634e Auto merge of #10653 - askeing:cleanup_tidy_for_external_deps, r=edunham
Cleanup tidy for external deps

fix #10639

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10653)
<!-- Reviewable:end -->
2016-04-19 02:21:01 +05:30
rwa
79a1dfe226 Handle URLError in download() #10679
Print a human-friendly message if there is no internet connection.
2016-04-18 20:34:35 +02:00
bors-servo
a87fa103b8 Auto merge of #10620 - autrilla:mach-command-improvements, r=Wafflespeanut
Improved readability of ensure_bootstrapped

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10620)
<!-- Reviewable:end -->
2016-04-17 11:21:41 +05:30
askeing
f5754b102c Remove "python/tidy_self_test/speclink.rs"
- it already move to "python/tidy/servo_tidy_tests/speclink.rs"
2016-04-17 04:44:28 +09:00
askeing
eb9a7e5c11 bump the minor version of servo_tidy
- and add clean folder into Makefile
2016-04-17 04:33:24 +09:00