-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (26 loc) · 765 Bytes
/
Makefile
File metadata and controls
34 lines (26 loc) · 765 Bytes
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
.PHONY: clean build all
VERSION := $(shell ./version.sh simple)
all: build docker-image
clean:
@echo "Cleaning..."
@./gradlew clean
test: ENV=test
test:
@echo "Running tests of version ${VERSION} in ${ENV} environment..."
@./gradlew test -Penv=${ENV}
acceptance: ENV=test
acceptance:
@echo "Running acceptance tests of version ${VERSION} in ${ENV} environment..."
@./gradlew server:acceptanceTest -Penv=${ENV}
build: ENV=test
build:
@echo "Building version ${VERSION}..."
@./gradlew build -Penv=${ENV}
run: ENV=dev
run: PORT=8080
run:
@echo "Starting server version ${VERSION} in ${ENV} environment..."
@./gradlew run --args="-e ${ENV} -p ${PORT}"
docker-image:
@echo "Building image ${VERSION}..."
@./gradlew -Pversion=${VERSION} jibDockerBuild