forked from dgoulet-tor/arti
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
45 lines (40 loc) · 1.12 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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
- cargo test --verbose
- rustup component add clippy rustfmt
- cargo clippy --all-features -- -D warnings
- cargo fmt -- --check
- cargo install cargo-audit
- cargo audit -D warnings
rust-latest-async-std:
stage: build
image: rust:latest
script:
- cd crates/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-features
- cargo test --verbose --all-features
- rustup component add clippy
- cargo clippy --all-features
- RUSTDOCFLAGS="-Dwarnings" cargo doc --all-features --document-private-items
build-repro:
stage: build
image: rust:1.54.0-alpine3.14
script:
- ./maint/reproducible_build.sh
artifacts:
paths:
- arti-bin
expire_in: 1 day