summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorAlan Somers <asomers@gmail.com>2020-06-27 12:57:16 -0600
committerAlan Somers <asomers@gmail.com>2020-06-27 16:53:00 -0600
commitc339ce10181509be55e32db390b1dfafb2ea5e27 (patch)
tree557d3492f9a7f5cdd0c640432efab43e6f7049fd /.travis.yml
parentea099dd0c817837805faf8fdead4a6b875b66972 (diff)
downloadnix-c339ce10181509be55e32db390b1dfafb2ea5e27.zip
Don't run redoxer in CI
It's unreliable. It frequently hangs starting the Docker image, before Cargo gets involved. Instead, use cargo to do a cross-build for Redox. Do it manually, since rust-embedded/cross doesn't support Redox. https://github.com/nix-rust/nix/issues/1258 https://github.com/rust-embedded/cross/issues/427
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml11
1 files changed, 9 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml
index 12384a54..285c161c 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -95,11 +95,18 @@ matrix:
script:
- cargo update -Zminimal-versions
- cargo check
+
+ # Redoxer is too unreliable, so we'll do a cross-build only
+ # See also:
+ # https://github.com/nix-rust/nix/issues/1258
+ # https://github.com/rust-embedded/cross/issues/427
- language: generic
name: redox
script:
- - docker pull redoxos/redoxer
- - docker run -v $(pwd):$(pwd) -w $(pwd) redoxos/redoxer sh -c 'rm -rf ~/.redoxer && redoxer test'
+ - curl --proto '=https' --tlsv1.2 -sSf --output rustup.sh https://sh.rustup.rs
+ - sh rustup.sh -y --profile=minimal --default-toolchain 1.36.0 --target x86_64-unknown-redox
+ - . $HOME/.cargo/env
+ - cargo build --all-targets
before_install: set -e