2020-12-06 00:16:34 +00:00
|
|
|
stages:
|
|
|
|
- build
|
|
|
|
|
2020-12-06 16:01:53 +00:00
|
|
|
variables:
|
|
|
|
# We don't need Husky to install the Git hooks for CI.
|
|
|
|
CARGO_HUSKY_DONT_INSTALL_HOOKS: "true"
|
|
|
|
|
2020-12-06 00:16:34 +00:00
|
|
|
rust-latest:
|
|
|
|
stage: build
|
|
|
|
image: rust:latest
|
|
|
|
script:
|
2020-12-06 14:49:28 +00:00
|
|
|
- cargo build --verbose --target x86_64-unknown-linux-gnu --all
|
|
|
|
- cargo test --verbose --all
|
2020-12-07 17:41:28 +00:00
|
|
|
- rustup component add clippy rustfmt
|
2020-12-07 21:18:21 +00:00
|
|
|
- cargo clippy -- -D warnings
|
2021-03-01 12:42:45 +00:00
|
|
|
- cargo fmt --all -- --check
|
2020-12-06 00:16:34 +00:00
|
|
|
|
2021-03-02 17:21:38 +00:00
|
|
|
rust-latest-async-std:
|
|
|
|
stage: build
|
|
|
|
image: rust:latest
|
|
|
|
script:
|
|
|
|
- cd tor-client && cargo check --no-default-features --features=async-std
|
|
|
|
|
2020-12-06 00:16:34 +00:00
|
|
|
rust-nightly:
|
|
|
|
stage: build
|
|
|
|
image: rustlang/rust:nightly
|
|
|
|
allow_failure: true
|
|
|
|
script:
|
2020-12-06 14:49:28 +00:00
|
|
|
- cargo build --verbose --target x86_64-unknown-linux-gnu --all
|
|
|
|
- cargo test --verbose --all
|
2020-12-07 17:51:03 +00:00
|
|
|
- rustup component add clippy
|
2020-12-06 14:49:28 +00:00
|
|
|
- cargo clippy
|
2020-12-07 19:04:05 +00:00
|
|
|
|