Skip to content

Commit

Permalink
Release v0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
akubera committed Jul 5, 2023
2 parents 24d9ae0 + 25dab38 commit 2977cf9
Show file tree
Hide file tree
Showing 23 changed files with 2,432 additions and 241 deletions.
60 changes: 34 additions & 26 deletions .circleci/config.yml
@@ -1,23 +1,25 @@
version: 2.1
orbs:
# codecov: codecov/codecov@3.0.0
rust: circleci/rust@1.5.0
# codecov: codecov/codecov@3.2.4
rust: circleci/rust@1.6.0

jobs:
build-and-test:
parameters:
rust-version:
type: string
default: "1.69.0"
debian-version:
type: string
default: "buster"
rust-features:
type: string
default: "''"
default: ""
docker:
- image: rust:<< parameters.rust-version >>-<< parameters.debian-version >>
environment:
RUSTFLAGS: '-D warnings'
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
steps:
- checkout
- run:
Expand All @@ -36,18 +38,18 @@ jobs:
key: bigdecimal-cargo-<< parameters.rust-version >>-{{ checksum "Cargo.toml" }}
- run:
name: Build
command: cargo build
command: cargo build << parameters.rust-features >>
- run:
name: Test
command: cargo test --features=<< parameters.rust-features >>
command: cargo test << parameters.rust-features >>

upload-coverage:
parameters:
rust-version:
type: string
debian-version:
type: string
default: "buster"
default: "bullseye"
machine: true
steps:
- checkout
Expand All @@ -60,19 +62,20 @@ jobs:
-e CI=true
$(bash <(curl -s https://codecov.io/env))
akubera/rust-codecov:<< parameters.rust-version >>-<< parameters.debian-version >>
sh -c 'cargo test -q && kcov-rust && upload-kcov-results-to-codecov'
sh -c 'cargo test -q --no-run && kcov-rust && upload-kcov-results-to-codecov'
- store_artifacts:
path: target/cov
- store_test_results:
path: target/cov
# - store_test_results:
# path: target

lint-check:
docker:
- image: cimg/rust:1.54.0
- image: cimg/rust:1.69
steps:
- checkout
- rust/build
- rust/format
- rust/build:
with_cache: false
# - rust/format
# - rust/clippy
- rust/test
- run:
Expand All @@ -81,30 +84,35 @@ jobs:

workflows:
version: 2
build-and-test:
cargo:build-and-test:
jobs:
- build-and-test:
name: build-and-test-1.34.0
rust-version: "1.34.0"
debian-version: "stretch"
- lint-check
- build-and-test:
matrix:
parameters:
rust-version:
- "1.40.0"
- "1.50.0"
- "1.43.1"
- "1.54.0"

- build-and-test:
name: build-and-test:latest
debian-version: "bullseye"

- build-and-test:
matrix:
parameters:
rust-version:
- "1.50.0"
- "1.54.0"
- "1.43.1"
- "1.69.0"
rust-features:
- "'serde'"
- "'serde,string-only'"
- "--features='serde'"
- "--features='serde,string-only'"

- build-and-test:
name: build-and-test:no-default-features
rust-features: "--no-default-features"

- upload-coverage:
rust-version: "1.54.0"
rust-version: "1.69.0"
requires:
- build-and-test-1.54.0
- lint-check
- build-and-test:latest
1 change: 1 addition & 0 deletions .clippy.toml
@@ -0,0 +1 @@
msrv = "1.43.0"
4 changes: 4 additions & 0 deletions .gitignore
Expand Up @@ -4,3 +4,7 @@ target
.vscode/

.*cache/

benches/test-data/

builds/

0 comments on commit 2977cf9

Please sign in to comment.