34 lines
794 B
YAML
34 lines
794 B
YAML
stages:
|
|
- build
|
|
|
|
variables:
|
|
# We don't need Husky to install the Git hooks for CI.
|
|
CARGO_HUSKY_DONT_INSTALL_HOOKS: "true"
|
|
|
|
rust-latest:
|
|
stage: build
|
|
image: rust:latest
|
|
script:
|
|
- cargo build --verbose --target x86_64-unknown-linux-gnu --all
|
|
- cargo test --verbose --all
|
|
- rustup component add clippy rustfmt
|
|
- cargo clippy -- -D warnings
|
|
- cargo fmt --all -- --check
|
|
|
|
rust-latest-async-std:
|
|
stage: build
|
|
image: rust:latest
|
|
script:
|
|
- cd tor-client && cargo check --no-default-features --features=async-std
|
|
|
|
rust-nightly:
|
|
stage: build
|
|
image: rustlang/rust:nightly
|
|
allow_failure: true
|
|
script:
|
|
- cargo build --verbose --target x86_64-unknown-linux-gnu --all
|
|
- cargo test --verbose --all
|
|
- rustup component add clippy
|
|
- cargo clippy
|
|
|