Commit Graph

20 Commits

Author SHA1 Message Date
Yuki Okushi 8625029ab8 Fix shellcheck warnings 2020-10-30 15:14:05 +09:00
Yuki Okushi 45317a0c2c
Use `build-std` feature instead of using `cargo-xbuild` 2020-07-25 23:57:46 +09:00
Yuki Okushi 75d3ea59ba
Revive CI for the switch target 2020-07-19 03:06:26 +09:00
Yuki Okushi 9740c8c78e
Add a workaround for disk space failures on Docker 2020-04-20 19:48:48 +09:00
Daniel 20cd625558 ci: allow overriding run-docker.sh CARGO_HOME.
The `ci/run-docker.sh` utility script adds a `--volume` argument to the
`docker` command to mount the Cargo home directory of the host machine
into the container at `/cargo`.

Prior to this patch the host's Cargo home directory is assumed to be the
`dirname` of the `dirname` of the `cargo` command's path. That works in
most cases where the host machine installed rust with vanilla
`rustup`. It may fail if the host machine used a different method.

For example if the host machine used the Archlinux rustup package[0]
then `cargo` is installed to `/usr/bin/cargo` and the `run-docker.sh`
script incorrectly mounts `/usr/` to the `/cargo` directory of the test
container.

This patch allows specifying an explicit `CARGO_HOME` to the
`ci/run-docker.sh` script so that users with a non-standard cargo dir
can use the utility without modification. By default if no `CARGO_HOME`
is set then the legacy behaviour is used and `CARGO_HOME` defaults to
the `dirname` of the `dirname` of the `cargo` command is used.

[0]: https://wiki.archlinux.org/index.php/rust#Arch_Linux_package
2020-03-21 11:49:14 -04:00
gnzlbg af88cf1f0f Add a build task for FreeBSD11 without LIBC_CI 2019-08-14 07:36:41 +02:00
gnzlbg 6ca5bfaea1 Setup Azure Pipelines 2019-07-27 13:25:22 +02:00
Tom Parker-Shemilt 0942070c31 Remove hacky Travis workaround 2018-11-26 12:07:34 +00:00
Tom Parker-Shemilt 9a04c39566 Remove non-POSIX loop construct 2018-11-24 19:27:22 +00:00
Tom Parker-Shemilt b05e05819d Download Docker images first as that seems to work better at least locally 2018-11-24 19:18:51 +00:00
gnzlbg 37a0bd3251 Fix shellcheck issues 2018-11-20 10:25:26 +01:00
Alex Crichton d424022005 Update Android images/runners 2017-08-21 22:52:06 -07:00
Aidan Hobson Sayers f305647377 Remove --privileged from docker 2017-07-07 15:01:29 +01:00
Nicolas Dusart 4abc3cefef Update to NDK r15b (with unified headers) and add missing symbols needed by nix crate 2017-07-03 13:26:35 +02:00
Aidan Hobson Sayers fef01d6513 Remove docker flags that can cause issues (rust-lang/rust#39036) 2017-04-23 17:48:34 +01:00
Marco A L Barbosa 0b05b2a845 Enable kvm in docker images if available 2017-04-19 10:59:04 -03:00
Marco A L Barbosa 599eec3781 Add test support for {aarch64, i686}-linux-android 2017-02-23 16:08:29 -03:00
Alex Crichton c2842463e5 Share the host's `target` directory for tests
This helps caching between runs and can help speed up turnaround time for
various operations. The old android container didn't work out for some reason
due to permissions so the definition has now been vendored locally to just
rebuild it each time.
2016-11-17 11:30:17 -08:00
Alex Crichton 739edbc468 Use workspaces in this repo
Also cache on appveyor to speed up builds.
2016-10-08 17:26:56 -07:00
Alex Crichton 3eb4a48b1b Use docker for all CI tests and images
Previously we were somewhat half-Docker, half-Travis, half apt-get, etc. This
commit alters the CI infrastructure to use Docker images for each target. This
should make it much easier to update the images and tweak various bits and
pieces of installed software. Additionally, it's also much clearer now what's
needed for each suite of tests!

Some images were updated a bit (e.g. musl is now 1.1.14), but other images
encountered failures when updating so they're not getting updated just yet.
2016-06-15 03:33:30 -07:00