-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (37 loc) · 789 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
40
41
42
43
44
45
46
47
.ONESHELL:
.SILENT:
VERSION :=`cat $(PWD)/VERSION`
ENGINE_DIR = $(PWD)/engine
COVERAGE_DIR = $(PWD)/coverage/rspec
engine=cd $(ENGINE_DIR)
coverage=cd $(COVERAGE_DIR)
build:
$(engine)
cargo build
release:
$(engine)
cargo build --target x86_64-unknown-linux-musl --release
test:
$(engine)
cargo test
format:
$(engine)
cargo fmt
run.dummy:
$(engine)
cargo run -- \
--files "tests/fixtures/app/**/*.rb" \
--coverage "transmute.json" \
--command "rspec {file}" \
--formatter "html" \
--log-level "trace"
generate.coverage:
$(engine)
rm -rf transmute.json || true
COVERAGE=true rspec tests/fixtures/spec/
publish:
git tag -a v$(VERSION) -m "Bump version to $(VERSION)"
git push --tags
$(coverage)
rake build
gem push pkg/transmute-ruby-$(VERSION).gem