Skip to content

Commit 703d13b

Browse files
dev: makefile build and testing task updates
1 parent 83816ca commit 703d13b

File tree

1 file changed

+33
-30
lines changed

1 file changed

+33
-30
lines changed

Makefile

Lines changed: 33 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -92,35 +92,36 @@ clean: ## Clean build temporary files
9292
# ------------------------------------ #
9393

9494
# ------- Testing -------------------- #
95-
# test-config: ## Print Kaocha test runner configuration
96-
# $(info --------- Runner Configuration ---------)
97-
# clojure -M:test/env:test/run --print-config
95+
test-config: ## Print Kaocha test runner configuration
96+
$(info --------- Runner Configuration ---------)
97+
clojure -M:test/env:test/run --print-config
9898

99-
# test-profile: ## Profile unit test speed, showing 3 slowest tests
100-
# $(info --------- Runner Profile Tests ---------)
101-
# clojure -M:test/env:test/run --plugin kaocha.plugin/profiling
99+
test-profile: ## Profile unit test speed, showing 3 slowest tests
100+
$(info --------- Runner Profile Tests ---------)
101+
clojure -M:test/env:test/run --plugin kaocha.plugin/profiling
102102

103-
# test: ## Run unit tests - stoping on first error
104-
# $(info --------- Runner for unit tests ---------)
105-
# clojure -X:test/env:test/run
103+
test: ## Run unit tests - stoping on first error
104+
$(info --------- Runner for unit tests ---------)
105+
clojure -X:test/env:test/run
106106

107-
# test-all: ## Run all unit tests regardless of failing tests
108-
# $(info --------- Runner for all unit tests ---------)
109-
# clojure -X:test/env:test/run :fail-fast? false
107+
test-all: ## Run all unit tests regardless of failing tests
108+
$(info --------- Runner for all unit tests ---------)
109+
clojure -X:test/env:test/run :fail-fast? false
110110

111-
# test-watch: ## Run tests when changes saved, stopping test run on first error
112-
# $(info --------- Watcher for unit tests ---------)
113-
# clojure -X:test/env:test/run :watch? true
111+
test-watch: ## Run tests when changes saved, stopping test run on first error
112+
$(info --------- Watcher for unit tests ---------)
113+
clojure -X:test/env:test/run :watch? true
114+
115+
test-watch-all: ## Run all tests when changes saved, regardless of failing tests
116+
$(info --------- Watcher for unit tests ---------)
117+
clojure -X:test/env:test/run :fail-fast? false :watch? true
114118

115-
# test-watch-all: ## Run all tests when changes saved, regardless of failing tests
116-
# $(info --------- Watcher for unit tests ---------)
117-
# clojure -X:test/env:test/run :fail-fast? false :watch? true
118119
# ------------------------------------ #
119120

120121
# -------- Build tasks --------------- #
121-
# build-config: ## Pretty print build configuration
122-
# $(info --------- View current build config ---------)
123-
# clojure -T:build config
122+
build-config: ## Pretty print build configuration
123+
$(info --------- View current build config ---------)
124+
clojure -T:build config
124125

125126
# build-jar: ## Build a jar archive of Clojure project
126127
# $(info --------- Build library jar ---------)
@@ -130,9 +131,10 @@ clean: ## Clean build temporary files
130131
# $(info --------- Build service Uberjar ---------)
131132
# clojure -T:build uberjar
132133

133-
# build-clean: ## Clean build assets or given directory
134-
# $(info --------- Clean Build ---------)
135-
# clojure -T:build clean
134+
build-clean: ## Clean build assets or given directory
135+
$(info --------- Clean Build ---------)
136+
clojure -T:build clean
137+
136138
# ------------------------------------ #
137139

138140
# ------- Code Quality --------------- #
@@ -164,17 +166,18 @@ megalinter-upgrade: ## Upgrade MegaLinter config to latest version
164166
# ------------------------------------ #
165167

166168
# ------- Docker Containers ---------- #
167-
# docker-build: ## Build Clojure Service with docker compose
169+
# docker-build: ## Build Clojure project and run with docker compose
168170
# $(info --------- Docker Compose Build ---------)
169-
# docker compose up --build
171+
# docker compose up --build --detach
170172

171-
# docker-build-clean: ## Build Clojure Service with docker compose, removing orphans
173+
# docker-build-clean: ## Build Clojure project and run with docker compose, removing orphans
172174
# $(info --------- Docker Compose Build - remove orphans ---------)
173-
# docker compose up --build --remove-orphans
175+
# docker compose up --build --remove-orphans --detach
174176

175-
# docker-down: ## Shut down Clojure service using docker compose
177+
# docker-down: ## Shut down containers in docker compose
176178
# $(info --------- Docker Compose Down ---------)
177-
# docker-compose down
179+
# docker compose down
180+
178181

179182
# swagger-editor: ## Start Swagger Editor in Docker
180183
# $(info --------- Run Swagger Editor at locahost:8282 ---------)

0 commit comments

Comments
 (0)