Skip to content

Commit 07291c2

Browse files
author
“Kevin”
committed
Add batch to Makefile
Signed-off-by: “Kevin” <“[email protected]”>
1 parent f7320eb commit 07291c2

File tree

1 file changed

+18
-12
lines changed

1 file changed

+18
-12
lines changed

Makefile

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ PROGS = helloworld \
3737
sleep \
3838
dataconverter \
3939
autoscaling-monitoring \
40+
batch \
4041

4142
TEST_ARG ?= -race -v -timeout 5m
4243
BUILD := ./build
@@ -52,6 +53,7 @@ TEST_DIRS=./cmd/samples/cron \
5253
./cmd/samples/dsl \
5354
./cmd/samples/expense \
5455
./cmd/samples/fileprocessing \
56+
./cmd/samples/batch \
5557
./cmd/samples/recipes/branch \
5658
./cmd/samples/recipes/choice \
5759
./cmd/samples/recipes/greetings \
@@ -187,6 +189,21 @@ dataconverter:
187189
autoscaling-monitoring:
188190
go build -o bin/autoscaling-monitoring cmd/samples/advanced/autoscaling-monitoring/*.go
189191

192+
batch:
193+
go build -o bin/batch cmd/samples/batch/*.go
194+
195+
test: bins
196+
@rm -f test
197+
@rm -f test.log
198+
@echo $(TEST_DIRS)
199+
@for dir in $(TEST_DIRS); do \
200+
go test -coverprofile=$@ "$$dir" | tee -a test.log; \
201+
done;
202+
203+
clean:
204+
rm -rf bin
205+
rm -Rf $(BUILD)
206+
190207
bins: helloworld \
191208
versioning \
192209
delaystart \
@@ -220,15 +237,4 @@ bins: helloworld \
220237
sleep \
221238
dataconverter \
222239
autoscaling-monitoring \
223-
224-
test: bins
225-
@rm -f test
226-
@rm -f test.log
227-
@echo $(TEST_DIRS)
228-
@for dir in $(TEST_DIRS); do \
229-
go test -coverprofile=$@ "$$dir" | tee -a test.log; \
230-
done;
231-
232-
clean:
233-
rm -rf bin
234-
rm -Rf $(BUILD)
240+
batch \

0 commit comments

Comments
 (0)