image: "rust:latest"
stages:
- build
- test
before_script:
- rustup toolchain add nightly
- rustup target add x86_64-unknown-redox --toolchain nightly
- rustup show # Print version info for debugging
cache:
paths:
- target/
build:linux:cargo:
stage: build
script:
- cargo +nightly build --verbose
build:redox:cargo:
stage: build
script:
- cargo +nightly build --verbose --target x86_64-unknown-redox
test:linux:cargo:
stage: test
dependencies:
- build:linux:cargo
script:
- cargo +nightly test --verbose -- --test-threads=1
# TODO: Set up a redox testing docker image that would allow to run things
# like tests under redox