1
0
Fork 0
mirror of https://gitlab.com/msrd0/gotham-restful.git synced 2025-05-10 08:30:42 +00:00

ci: include openapi_type crate

This commit is contained in:
Dominic 2021-03-09 19:55:04 +01:00
parent ebea39fe0d
commit 3a3f743369
Signed by: msrd0
GPG key ID: DCC8C247452E98F9
3 changed files with 30 additions and 4 deletions

View file

@ -14,20 +14,20 @@ check-example:
before_script:
- cargo -V
script:
- cd example
- cargo check
- 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
@ -43,6 +43,7 @@ test-full:
- 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
@ -79,6 +80,7 @@ test-trybuild-ui:
- 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
@ -107,8 +109,9 @@ rustfmt:
- cargo -V
- cargo fmt --version
script:
- cargo fmt -- --check
- cargo fmt --all -- --check
- ./tests/ui/rustfmt.sh --check
- ./openapi-type/tests/fail/rustfmt.sh --check
doc:
stage: build