Skip to content

Commit d872359

Browse files
committed
add circleci
1 parent 6e0c0c0 commit d872359

File tree

2 files changed

+58
-0
lines changed

2 files changed

+58
-0
lines changed

.circleci/config.yaml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
[![GitHub issues](https://img.shields.io/github/release/RedisLabsModules/redismodule-rs.svg)](https://github.com/RedisLabsModules/redismodule-rs/releases/latest)
2+
[![CircleCI](https://circleci.com/gh/RedisLabsModules/redismodule-rs/tree/master.svg?style=svg)](https://circleci.com/gh/RedisLabsModules/redismodule-rs/tree/master)
3+
14
# redismodule-rs
25

36
The Rust API for Redis is based on the https://github.com/brandur/redis-cell project.

0 commit comments

Comments
 (0)