Skip to content

Commit ba10269

Browse files
gkorlandgavrie
authored andcommitted
add circleci
1 parent 41fbaec commit ba10269

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed

.circleci/config.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
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+
- run:
15+
name: Install prerequisite
16+
command: sudo apt-get install -y clang llvm
17+
18+
- restore_cache:
19+
keys:
20+
- v1-dependencies-{{ arch }}-{{ checksum "Cargo.lock" }}
21+
# fallback to using the latest cache if no exact match is found
22+
- v1-dependencies-
23+
# - run:
24+
# name: Check formatting
25+
# command: |
26+
# rustfmt --version
27+
# cargo fmt -- --write-mode=diff
28+
29+
- run:
30+
name: Build all targets
31+
command: cargo build --all --all-targets
32+
33+
# - run:
34+
# name: Nightly Build
35+
# command: |
36+
# rustup run nightly rustc --version --verbose
37+
# rustup run nightly cargo --version --verbose
38+
# rustup run nightly cargo build
39+
# - run:
40+
# name: Stable Build
41+
# command: |
42+
# rustup run stable rustc --version --verbose
43+
# rustup run stable cargo --version --verbose
44+
# rustup run stable cargo build
45+
# - run:
46+
# name: Test
47+
# command: rustup run stable cargo test
48+
# - run:
49+
# name: Upload Coverage
50+
# command: ./scripts/codecov.sh
51+
- save_cache:
52+
key: v1-dependencies-{{ arch }}-{{ checksum "Cargo.lock" }}
53+
paths:
54+
- "~/.cargo"
55+
- "./target"
56+
57+
- run:
58+
name: Run all tests
59+
command: cargo test --all

0 commit comments

Comments
 (0)