代码拉取完成,页面将自动刷新
stages:
- test
.setup_template: &setup_template
stage: test
image: debian:stable-slim
before_script:
- export CARGO_HOME="$CI_PROJECT_DIR/.cargo"
- export PATH="$PATH:$CARGO_HOME/bin"
- export RUST_BACKTRACE=full
- apt-get update > /dev/null
- apt-get install -y curl build-essential > /dev/null
- curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain $RUST_VERSION
- rustup --version
- rustc --version
- cargo --version
.test_all_template: &test_all_template
<<: *setup_template
script:
- cargo test --all
test-stable:
<<: *test_all_template
variables:
RUST_VERSION: stable
test-beta:
<<: *test_all_template
variables:
RUST_VERSION: beta
test-nightly:
<<: *test_all_template
variables:
RUST_VERSION: nightly
test-1.31.0:
<<: *setup_template
script:
- cargo test --tests # skip doctests
variables:
RUST_VERSION: 1.31.0
test-fmt:
<<: *setup_template
script:
- cargo fmt --all -- --check
variables:
RUST_VERSION: stable
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。