-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
86 lines (62 loc) · 1.51 KB
/
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
RUBY ?= ruby
RDOC ?= rdoc
BUNDLE ?= bundle
RAKE ?= rake
GEM ?= gem
RUBOCOP ?= rubocop
help: Makefile
@echo
@echo " Choose a command run in Polars:"
@echo
@sed -n 's/^##//p' $< | column -t -s ':' | sed -e 's/^/ /'
@echo
## docs: Generate Docs
.PHONY: docs
docs:
@echo ">> ============= Generate Docs ============= <<"
$(RDOC)
## test: Run test cases
.PHONY: test
test:
@echo ">> ============= Run Tests ============= <<"
$(RAKE) spec
## console: Run interactive console.
.PHONY: console
console:
@echo ">> ============= Run Console ============= <<"
./bin/console
## setup: Setup dependencies.
.PHONY: setup
setup:
@echo ">> ============= Setup Dependencies ============= <<"
./bin/setup
## build: Build the ruby gem.
.PHONY: build
build:
@echo ">> ============= Build the Package ============= <<"
$(GEM) build polars.gemspec
## push: Publish the ruby gem.
.PHONY: push
push:
@echo ">> ============= Publish the Package ============= <<"
$(GEM) push polars-*.gem
## install: Install the gem locally.
.PHONY: install
install:
@echo ">> ============= Install Locally ============= <<"
$(RAKE) install
## release: Release the gem.
.PHONY: release
release:
@echo ">> =========== Release the Package =========== <<"
$(RAKE) release
## format: Format the ruby code.
.PHONY: format
format:
@echo ">> ============= Format the Code ============= <<"
$(RUBOCOP) -a
## ci: Run all CI tests.
.PHONY: ci
ci: test format
@echo "\n==> All quality checks passed"
.PHONY: help