This repository was archived by the owner on Apr 20, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +55
-0
lines changed
Expand file tree Collapse file tree 1 file changed +55
-0
lines changed Original file line number Diff line number Diff line change 1+ version : 2
2+
3+ jobs :
4+ build :
5+ docker :
6+ - image : circleci/rust
7+
8+ steps :
9+ - checkout
10+ - run :
11+ name : Version information
12+ command : rustc --version; cargo --version; rustup --version
13+
14+ - restore_cache :
15+ keys :
16+ - v1-dependencies-{{ arch }}-{{ checksum "Cargo.lock" }}
17+ # fallback to using the latest cache if no exact match is found
18+ - v1-dependencies-
19+ - run :
20+ name : Check formatting
21+ command : |
22+ rustfmt --version
23+ cargo fmt -- --write-mode=diff
24+
25+ - run :
26+ name : Build all targets
27+ command : cargo build --all --all-targets
28+
29+ # - run:
30+ # name: Nightly Build
31+ # command: |
32+ # rustup run nightly rustc --version --verbose
33+ # rustup run nightly cargo --version --verbose
34+ # rustup run nightly cargo build
35+ # - run:
36+ # name: Stable Build
37+ # command: |
38+ # rustup run stable rustc --version --verbose
39+ # rustup run stable cargo --version --verbose
40+ # rustup run stable cargo build
41+ # - run:
42+ # name: Test
43+ # command: rustup run stable cargo test
44+ # - run:
45+ # name: Upload Coverage
46+ # command: ./scripts/codecov.sh
47+ - save_cache :
48+ key : v1-dependencies-{{ arch }}-{{ checksum "Cargo.lock" }}
49+ paths :
50+ - " ~/.cargo"
51+ - " ./target"
52+
53+ - run :
54+ name : Run all tests
55+ command : cargo test --all
You can’t perform that action at this time.
0 commit comments