arti/.gitlab-ci.yml

93 lines
2.2 KiB
YAML
Raw Normal View History

2020-12-06 00:16:34 +00:00
stages:
- build
2021-09-27 16:35:32 +01:00
- test
2020-12-06 00:16:34 +00:00
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:
- cargo build --verbose --target x86_64-unknown-linux-gnu
- cargo test --verbose
- rustup component add clippy rustfmt
2021-09-08 16:26:42 +01:00
- cargo clippy --all-features --tests -- -D warnings
- cargo fmt -- --check
2021-07-16 15:25:02 +01:00
- cargo install cargo-audit
- ./maint/cargo_audit.sh
2021-09-08 21:15:20 +01:00
tags:
- amd64
2021-09-27 16:35:32 +01:00
artifacts:
paths:
- target/x86_64-unknown-linux-gnu/debug/arti
expire_in: 1 hours
2020-12-06 00:16:34 +00:00
rust-latest-async-std:
stage: build
image: rust:latest
script:
- cd crates/arti-client && cargo check --no-default-features --features=async-std
2021-09-08 21:15:20 +01:00
tags:
- amd64
2020-12-06 00:16:34 +00:00
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
2021-09-08 21:15:20 +01:00
tags:
- amd64
minimal-versions:
stage: test
image: rust:1.56
script:
- rustup install nightly
- cargo +nightly update -Z minimal-versions
- cargo update -p crc32fast -p lexical-core -p synstructure:0.12.0 # failing deps of deps
- cargo build --verbose --target x86_64-unknown-linux-gnu --all-features
- cargo test --verbose --all-features
tags:
- amd64
build-repro:
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"
- if: $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_TAG != null
stage: build
image: rust:1.54.0-alpine3.14
script:
2021-09-19 20:38:07 +01:00
- ./maint/reproducible_build.sh linux windows macos
artifacts:
paths:
- arti-linux
- arti-windows.exe
- arti-macos
expire_in: 1 day
cache:
paths:
- osxcross/target
2021-08-31 17:24:49 +01:00
tags:
- TPA
2021-09-08 21:15:20 +01:00
- amd64
2021-09-27 16:35:32 +01:00
integration:
stage: test
image: debian:stable-slim
script:
- apt update
- apt install -y tor git python3 curl
2021-09-28 18:36:00 +01:00
- ./tests/chutney/setup.sh
2021-09-27 16:35:32 +01:00
- curl http://example.com -vs --socks5-hostname 127.0.0.1:9150 -o /dev/null
2021-09-28 18:36:00 +01:00
- ./tests/chutney/teardown.sh
2021-09-27 16:35:32 +01:00
tags:
- amd64