2021-03-13 19:00:13 +00:00
|
|
|
image: "rust:latest"
|
|
|
|
|
2021-05-22 19:41:08 +00:00
|
|
|
default:
|
|
|
|
tags: [docker]
|
|
|
|
|
2021-05-13 07:57:11 +00:00
|
|
|
cache:
|
|
|
|
paths:
|
|
|
|
- target
|
|
|
|
- cargohome
|
|
|
|
|
|
|
|
|
2021-03-13 19:00:13 +00:00
|
|
|
variables:
|
|
|
|
GIT_SUBMODULE_STRATEGY: recursive
|
2021-05-13 07:57:11 +00:00
|
|
|
CARGO_HOME: "cargohome"
|
|
|
|
FF_USE_FASTZIP: 1
|
2021-03-13 19:00:13 +00:00
|
|
|
|
|
|
|
before_script:
|
2021-05-13 07:57:11 +00:00
|
|
|
- mkdir -p $CARGO_HOME && echo "using $CARGO_HOME to cache cargo deps"
|
2021-03-13 19:00:13 +00:00
|
|
|
- apt-get update -yqq
|
|
|
|
- apt-get install -yqq --no-install-recommends build-essential libssl-dev pkg-config
|
2021-05-05 17:44:32 +00:00
|
|
|
- rustup component add clippy rustfmt
|
2021-03-13 19:00:13 +00:00
|
|
|
|
|
|
|
test:cargo:
|
|
|
|
script:
|
|
|
|
- rustc --version && cargo --version # Print version info for debugging
|
|
|
|
- cargo test --workspace --verbose --locked
|
2021-05-05 16:48:44 +00:00
|
|
|
- cargo fmt --all -- --check
|
2021-05-05 17:44:32 +00:00
|
|
|
- cargo clippy
|