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 :
2021-05-25 21:18:00 +01:00
- cargo build --verbose --target x86_64-unknown-linux-gnu
- cargo test --verbose
2020-12-07 17:41:28 +00:00
- rustup component add clippy rustfmt
2021-09-08 16:26:42 +01:00
- cargo clippy --all-features --tests -- -D warnings
2021-05-25 21:18:00 +01:00
- cargo fmt -- --check
2021-07-16 15:25:02 +01:00
- cargo install cargo-audit
2021-07-21 14:33:32 +01:00
- cargo audit -D warnings
2021-09-12 09:20:53 +01:00
- cp misc/Cargo.lock Cargo.lock
- cargo fetch
- diff misc/Cargo.lock Cargo.lock || (echo 'Some new dependancies were added. Please run "./maint/reproducible_update_cargolock.sh" and commit.' && false)
2021-09-08 21:15:20 +01:00
tags :
- amd64
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 :
2021-08-27 15:17:52 +01:00
- cd crates/tor-client && cargo check --no-default-features --features=async-std
2021-09-08 21:15:20 +01:00
tags :
- amd64
2021-03-02 17:21:38 +00:00
2020-12-06 00:16:34 +00:00
rust-nightly :
stage : build
image : rustlang/rust:nightly
allow_failure : true
script :
2021-05-25 21:18:00 +01:00
- cargo build --verbose --target x86_64-unknown-linux-gnu --all-features
- cargo test --verbose --all-features
2020-12-07 17:51:03 +00:00
- rustup component add clippy
2021-05-25 21:18:00 +01:00
- cargo clippy --all-features
- RUSTDOCFLAGS="-Dwarnings" cargo doc --all-features --document-private-items
2021-09-08 21:15:20 +01:00
tags :
- amd64
2020-12-07 19:04:05 +00:00
2021-08-25 16:16:49 +01:00
build-repro :
2021-08-29 14:36:41 +01:00
rules :
- if : $CI_PIPELINE_SOURCE == "schedule"
- if : $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_TAG != null
2021-08-25 16:16:49 +01:00
stage : build
image : rust:1.54.0-alpine3.14
script :
- ./maint/reproducible_build.sh
artifacts :
paths :
2021-08-29 12:48:33 +01:00
- arti-linux
- arti-windows.exe
2021-08-25 16:16:49 +01:00
expire_in : 1 day
2021-08-31 17:24:49 +01:00
tags :
- TPA
2021-09-08 21:15:20 +01:00
- amd64