stages: - test - build - publish variables: CARGO_HOME: $CI_PROJECT_DIR/cargo RUST_LOG: info,gotham=debug,gotham_restful=trace check-example: stage: test image: rust:slim before_script: - cargo -V script: - cargo check --manifest-path example/Cargo.toml cache: key: cargo-stable-example paths: - cargo/ - target/ test-default: stage: test image: rust:1.49-slim before_script: - cargo -V script: - cargo test --manifest-path openapi_type/Cargo.toml -- --skip trybuild - cargo test cache: key: cargo-1-49-default paths: - cargo/ - target/ test-full: stage: test image: rust:1.49-slim before_script: - apt update -y - apt install -y --no-install-recommends libpq-dev - cargo -V script: - cargo test --manifest-path openapi_type/Cargo.toml --all-features -- --skip trybuild - cargo test --no-default-features --features full cache: key: cargo-1-49-all paths: - cargo/ - target/ test-tarpaulin: stage: test image: rust:slim before_script: - apt update -y - apt install -y --no-install-recommends libpq-dev libssl-dev pkgconf - cargo -V - cargo install cargo-tarpaulin script: - cargo tarpaulin --target-dir target/tarpaulin --no-default-features --features full --exclude-files 'cargo/*' --exclude-files 'derive/*' --exclude-files 'example/*' --exclude-files 'target/*' --ignore-panics --ignore-tests --out Html --out Xml -v artifacts: paths: - tarpaulin-report.html reports: cobertura: cobertura.xml cache: key: cargo-stable-all paths: - cargo/ - target/ test-trybuild-ui: stage: test image: rust:1.50-slim before_script: - apt update -y - apt install -y --no-install-recommends libpq-dev - cargo -V script: - cargo test --manifest-path openapi_type/Cargo.toml --all-features -- trybuild - cargo test --no-default-features --features full --tests -- --ignored cache: key: cargo-1-50-all paths: - cargo/ - target/ readme: stage: test image: ghcr.io/msrd0/cargo-readme before_script: - cargo readme -V script: - cargo readme -t README.tpl -o README.md.new - diff README.md README.md.new rustfmt: stage: test image: name: alpine:3.13 before_script: - apk add rustup - rustup-init -qy --default-host x86_64-unknown-linux-musl --default-toolchain none
The documentation is located here' >public/index.html artifacts: paths: - public only: - master