Skip to content

Commit

Permalink
Add more serde test-cases to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
akubera committed Jun 2, 2024
1 parent 4c9739d commit 2d5c2d1
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,14 @@ workflows:
name: build-and-test:serde+no_std
rust-features: "--no-default-features --features='serde'"

- build-and-test:
name: build-and-test:serde_json
rust-features: "--features='serde-json'"

- build-and-test:
name: build-and-test:serde_json+no_std
rust-features: "--features='serde-json' --no-default-features"

- cargo-semver-check:
requires:
- build-and-test:latest:serde
Expand Down
35 changes: 35 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,29 @@ cargo:test:serde:
<<: *script-cargo-test
script:
- cargo test --features=serde --all-targets
- cargo test --features=serde --no-default-features

cargo:build:serde-json:
stage: build
image: akubera/rust:stable
needs:
- cargo:check
variables:
RUST_CACHE_KEY: "stable+serde-json"
<<: *script-cargo-build
script:
- cargo build --features=serde-json --all-targets

cargo:test:serde-json:
stage: test
image: akubera/rust:stable
needs:
- "cargo:build:serde-json"
variables:
RUST_CACHE_KEY: "stable+serde-json"
<<: *script-cargo-test
script:
- cargo test --features=serde-json --all-targets


cargo:build-nightly:
Expand Down Expand Up @@ -265,6 +288,18 @@ cargo:test-1.43:
RUST_CACHE_KEY: "1.43"
<<: *script-cargo-test

cargo:test-1.43:serde:
stage: test
needs:
- "cargo:build-1.43"
image: "akubera/rust-kcov:1.43.1-buster"
variables:
RUST_CACHE_KEY: "1.43-serde"
<<: *script-cargo-test
script:
- cargo test --features=serde --all-targets
- cargo test --features=serde --no-default-features


cargo:check-1.70:
stage: check
Expand Down

0 comments on commit 2d5c2d1

Please sign in to comment.