mirror of
https://gitlab.com/famedly/conduit.git
synced 2024-11-19 02:00:50 +01:00
28 lines
631 B
YAML
28 lines
631 B
YAML
image: "rust:latest"
|
|
|
|
default:
|
|
tags: [docker]
|
|
|
|
cache:
|
|
paths:
|
|
- target
|
|
- cargohome
|
|
|
|
|
|
variables:
|
|
GIT_SUBMODULE_STRATEGY: recursive
|
|
CARGO_HOME: "cargohome"
|
|
FF_USE_FASTZIP: 1
|
|
|
|
before_script:
|
|
- mkdir -p $CARGO_HOME && echo "using $CARGO_HOME to cache cargo deps"
|
|
- apt-get update -yqq
|
|
- apt-get install -yqq --no-install-recommends build-essential libssl-dev pkg-config
|
|
- rustup component add clippy rustfmt
|
|
|
|
test:cargo:
|
|
script:
|
|
- rustc --version && cargo --version # Print version info for debugging
|
|
- cargo test --workspace --verbose --locked
|
|
- cargo fmt --all -- --check
|
|
- cargo clippy
|