Commit Graph

34 Commits

Author SHA1 Message Date
Dan Gohman
324c821adf Replace 'mypy --version' with adding '--verbose' to the pip3 install command-line. 2018-11-28 16:46:42 -08:00
Dan Gohman
eaca8d3f2e Enable OSX in Travis CI. 2018-11-28 15:47:03 -08:00
Dan Gohman
ef2e11265c Update to Rust 1.30. 2018-11-12 07:13:53 -08:00
Dan Gohman
62e55f63e6 Update the minimum supported Rust version to 1.29.
We no longer need the Ubuntu LTS restriction, so now the only only
constraint I'm aware of is Firefox's policy. Fortunately, that tracks
the latest stable delayed by only two weeks. So this puts is at
Rust 1.29 now.
2018-10-31 12:54:16 -07:00
theJosher
2a5f245b1d #558 undoing the workaround - removing mypy 0.630 pin 2018-10-29 19:53:43 -07:00
Dan Gohman
58229e10bf Pin mypy to 0.630.
Pin mypy to 0.630 to work around errors reported in mypy 0.641.
2018-10-15 16:01:49 -07:00
Dan Gohman
fb1ac22c21 Add fast_finish = true to .travis.yml.
This allows us to get the results for stable builds as soon as they're
ready.
2018-08-16 15:26:53 -07:00
Dan Gohman
96e43b366d Add more comments explaining .travis.yml contents. 2018-07-13 17:03:57 -07:00
Dan Gohman
2db2d946b8 Support the rustc in the latest Ubuntu LTS.
At this time, this is Bionic, with Rust 1.25.0.
2018-07-13 16:26:21 -07:00
Dan Gohman
35f2cae00c Add comments explaining the rustfmt installation dance. 2018-05-31 09:32:02 -07:00
Dan Gohman
6b88cd44a8 Update to rustfmt-preview (#348)
* Update to rustfmt-preview.

* Run "cargo fmt --all" with rustfmt 0.4.1.

rustfmt 0.4.1 is the latest release of rustfmt-preview available on the
stable channel.

* Fix a long line that rustfmt 0.4.1 can't handle.

* Remove unneeded commas left behind by rustfmt.
2018-05-25 11:38:38 -07:00
Dan Gohman
a6e6b79a2e Remove the install of the wasm-toolchain binary package.
With 8f4a3586e5a787fd32a9afe35df4a9811d92c66b, we now have proper wabt
integration, so we no longer need to download and install a separate
binary package.
2018-05-24 14:52:51 -07:00
Dan Gohman
846a71d93b Fixes for mypy 0.600 (#324)
* Remove the mypy version constraint and set strict_optional to False.

* Add type annotations for `ISA` variables.

mypy 0.600 seems to require explicit annotations here.

* Annotate the ISA variables in the defs.py files too.
2018-05-03 12:12:19 -07:00
Pat Hickey
69468915d5 cretonne-faerie: add a translation mechanism for LibCalls (#321)
* cretonne-faerie: add a translation mechanism for LibCalls

* cretonne-faerie: docs for libcall_names, rustfmt

* cretonne-faerie: switch libcall naming to use a closure

* travis: debug mypy version

* travis: pin mypy to 0.521

mypy released 0.600 today and even with `--no-strict-optional` flag
passed to it (in lib/codegen/meta/check.sh) it fails to infer the type
of values that did not need type annotations in the past

* faerie-backend: fix swapped nearbyint functions

* cretonne-faerie: move boxing out of FaerieBuilder
2018-05-03 06:54:55 -07:00
Dan Gohman
98a4e32236 Try a different syntax for allowing failures on rust beta. 2018-04-13 10:24:58 -07:00
Dan Gohman
25d2ab4c00 Change the Travis config to allow failures in rust beta.
Rustc beta and nightly crash when compiling Cretonne. I've filed
https://github.com/rust-lang/rust/issues/49528 to track this upstream.
For now, add Beta to the allow-failures list to temporarily work
around this.
2018-04-13 09:58:36 -07:00
Dan Gohman
5e5fcefdfd Add Travis builds with Rust nightly.
See [here](https://docs.travis-ci.com/user/languages/rust/) for details.
2018-03-15 21:37:31 -07:00
Pat Hickey
0676e8cbd7 install wasm-toolchain build 26619 from deb 2017-12-01 09:00:23 -08:00
Jakob Stoklund Olesen
bdf726d101 Go back to tracking the latest mypy release.
Our bug (https://github.com/python/mypy/issues/4069) was fixed in the
mypy-0.540 release.
2017-10-21 12:30:46 -07:00
Jakob Stoklund Olesen
56862c3da9 Roll back to mypy 0.521 to avoid a bug in 0.530.
Filed here: https://github.com/python/mypy/issues/4069

We should go back to tracking the latest mypy releases as soon as
possible.
2017-10-06 12:12:32 -07:00
Jakob Stoklund Olesen
40488c8e22 Install rustfmt as a separate Travis install step.
- Add a check-rustfmt.sh script which checks if the right version of
  rustfmt is installed.
- Run check-rustfmt.sh --install as an install step under travis_wait.

This is to work around the issue where cargo takes forever to build
rustfmt, causing Travis to terminate the build because it hasn't
produced any output for 10 minutes.
2017-04-27 13:55:13 -07:00
Jakob Stoklund Olesen
c767f277fa Stop testing on nightly rust
The nightly compiler isn't able to compile rustfmt in 10 minutes. This causes Travis CI to terminate the build.

We keep testing on beta and stable.
2017-01-25 16:35:28 -08:00
Jakob Stoklund Olesen
eecbcf9844 Add pip files to the cache. 2017-01-25 15:35:58 -08:00
Jakob Stoklund Olesen
70957cc7ce Doesn't work with 12.02 LTS's Python 3.2.
Try switching to Trusty to get a newer Python 3.
2017-01-25 14:59:48 -08:00
Jakob Stoklund Olesen
361d71a0ab The python3-pip package does not exist on Ubuntu 12.04 LTS.
Try to go via python3-setuptools instead.
2017-01-25 14:51:48 -08:00
Jakob Stoklund Olesen
10c2f397a8 Pull in a python3 Ubuntu package for Travis CI.
Then use pip3 to install dependencies.
2017-01-25 14:45:41 -08:00
Jakob Stoklund Olesen
91a7922474 Use Python 3.6 in Travis builds 2017-01-25 14:32:52 -08:00
Jakob Stoklund Olesen
4c5bca6b0d Install Python packages without Travis root user. 2017-01-25 14:26:28 -08:00
Jakob Stoklund Olesen
3bbe3f71cb Install mypy and flake8 in Travis environment. 2017-01-25 14:20:22 -08:00
Jakob Stoklund Olesen
6b784dd8dc Create a phantom workspace manifest for all crates.
Share a single Cargo.lock and target directory at the repo top-level.
2016-10-10 10:52:48 -07:00
Jakob Stoklund Olesen
81f26422fa Tell Travis to cache Cargo intermediate build products.
The CI builds were using a lot of time downloading and building crates.
2016-09-17 11:29:52 -07:00
Jakob Stoklund Olesen
05826c8a69 Fix Travis script path. 2016-07-07 17:27:51 -07:00
Jakob Stoklund Olesen
31520717d3 Include parser tests in the test-all.sh script.
Move test-all.sh to the top level directory, and also run the parser tests from
this script.

Use a release build of cton-util to run the parser tests. As we accumulate many
tests in the tests directory tree, this will mean they can still be run quickly.

Point Travis config to the new test script.
2016-07-07 17:25:01 -07:00
Jakob Stoklund Olesen
c344dbf437 Set up Travis CI 2016-04-29 15:31:25 -07:00