Skip to content

Commit 28d309f

Browse files
committed
Switch Makefile to Justfile
1 parent 6054bc7 commit 28d309f

File tree

3 files changed

+29
-23
lines changed

3 files changed

+29
-23
lines changed

.travis.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
services:
3-
- redis-server
3+
- redis
44
language: rust
55
cache: cargo
66

@@ -12,20 +12,26 @@ matrix:
1212
include:
1313
- rust: stable
1414
env: FMT=1
15+
before_install:
16+
- cargo install just
1517
before_script:
1618
- rustup component add rustfmt
1719
script:
18-
- cargo fmt --all -- --check
20+
- just format
1921
- rust: stable
2022
env: CLIPPY=1
23+
before_install:
24+
- cargo install just
2125
before_script:
2226
- rustup component add clippy
2327
script:
24-
- cargo clippy -- -D warnings
28+
- just lint
2529
- rust: stable
2630
env: TEST=1
31+
before_install:
32+
- cargo install just
2733
script:
28-
- cargo test
34+
- just test
2935
- rust: nightly
3036
env: BENCH=1
3137
script:

Justfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
all: build test
2+
3+
@build:
4+
cargo build
5+
6+
@test:
7+
cargo test --all -- --quiet
8+
9+
@bench:
10+
cargo bench
11+
12+
@docs: build
13+
cargo doc --no-deps
14+
15+
@format:
16+
cargo fmt --all -- --check
17+
18+
@lint:
19+
cargo clippy -- -D warnings

Makefile

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)