File tree Expand file tree Collapse file tree 2 files changed +98
-40
lines changed Expand file tree Collapse file tree 2 files changed +98
-40
lines changed Original file line number Diff line number Diff line change
1
+ version : 2.1
2
+ orbs :
3
+ # codecov: codecov/[email protected]
4
+
5
+
6
+ jobs :
7
+ build-and-test :
8
+ parameters :
9
+ rust-version :
10
+ type : string
11
+ debian-version :
12
+ type : string
13
+ default : " buster"
14
+ docker :
15
+ - image : rust:<< parameters.rust-version >>-<< parameters.debian-version >>
16
+ environment :
17
+ RUSTFLAGS : ' -D warnings'
18
+ steps :
19
+ - checkout
20
+ - run :
21
+ name : Rust Version
22
+ command : rustc --version; cargo --version
23
+ - restore_cache :
24
+ keys :
25
+ - bigdecimal-cargo-<< parameters.rust-version >>-{{ checksum "Cargo.toml" }}
26
+ - bigdecimal-cargo-
27
+ - run :
28
+ name : Check
29
+ command : cargo check
30
+ - save_cache :
31
+ paths :
32
+ - /usr/local/cargo
33
+ key : bigdecimal-cargo-<< parameters.rust-version >>-{{ checksum "Cargo.toml" }}
34
+ - run :
35
+ name : Build
36
+ command : cargo build
37
+ - run :
38
+ name : Test
39
+ command : cargo test
40
+
41
+ upload-coverage :
42
+ parameters :
43
+ rust-version :
44
+ type : string
45
+ debian-version :
46
+ type : string
47
+ default : " buster"
48
+ machine : true
49
+ steps :
50
+ - checkout
51
+ - run :
52
+ name : Generate Coverage
53
+ command : >
54
+ docker run
55
+ --security-opt seccomp=unconfined
56
+ -v "${PWD}:/home"
57
+ -e CI=true
58
+ $(bash <(curl -s https://codecov.io/env))
59
+ akubera/rust-codecov:<< parameters.rust-version >>-<< parameters.debian-version >>
60
+ sh -c 'cargo test -q && kcov-rust && upload-kcov-results-to-codecov'
61
+ - store_artifacts :
62
+ path : target/cov
63
+ - store_test_results :
64
+ path : target/cov
65
+
66
+ lint-check :
67
+ docker :
68
+ - image : cimg/rust:1.54.0
69
+ steps :
70
+ - checkout
71
+ - rust/build
72
+ - rust/format
73
+ - rust/clippy
74
+ - rust/test
75
+ - run :
76
+ name : Build examples
77
+ command : cargo build --examples
78
+
79
+ workflows :
80
+ version : 2
81
+ build-and-test :
82
+ jobs :
83
+ - build-and-test :
84
+ name : build-and-test-1.34.0
85
+ rust-version : " 1.34.0"
86
+ debian-version : " stretch"
87
+ - build-and-test :
88
+ matrix :
89
+ parameters :
90
+ rust-version :
91
+ - " 1.40.0"
92
+ - " 1.50.0"
93
+ - " 1.54.0"
94
+ - upload-coverage :
95
+ rust-version : " 1.54.0"
96
+ requires :
97
+ - build-and-test-1.54.0
98
+ - lint-check
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments