-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (31 loc) · 950 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
.PHONY: release release_vagrant test test_trace test_nocapture clean up
release:
$(info => Building a release binary)
cargo build --release
release_vagrant:
$(info => Building a release binary in Vagrant)
vagrant rsync
vagrant ssh -c 'cd /vagrant && cargo build --release'
mkdir -p target/release
# requires vagrant-scp plugin
# vagrant plugin install vagrant-scp
vagrant scp default:/vagrant/target/release/rj target/release/
up:
$(info => Bringing up vagrant box)
vagrant up
test:
$(info => Running tests)
vagrant ssh -c 'cd /vagrant && sudo cargo test'
test_trace:
$(info => Running tests with RUST_BACKTRACE)
vagrant ssh -c 'cd /vagrant && sudo RUST_BACKTRACE=1 cargo test'
test_nocapture:
$(info => Running tests with RUST_BACKTRACE)
vagrant ssh -c 'cd /vagrant && sudo RUST_BACKTRACE=1 cargo test -- --nocapture'
fmt:
$(info => Formatting)
cargo fmt
# cargo +nightly fmt
clean:
$(info => Cleaning)
rm -rf target/