-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
29 lines (28 loc) · 902 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
.PHONY: build
docker_tag=latest
all=false
clean:
rm -rf build
check:
ifeq ($(all), true)
yamllint -d relaxed . --no-warnings
endif
./gradlew check
build:
./gradlew build
integration-test:
rm -rf logs-intg.txt
docker compose up --wait
docker logs -f email-sender-intg > logs-intg.txt &
./gradlew integrationTest --tests '*ControllerIntegrationSpec*'
docker-compose down
embedded-integration-test:
rm -rf logs-intg-embedded.txt
docker compose -f docker-compose-embedded.yml up --wait
docker logs -f email-sender-intg-embedded > logs-intg-embedded.txt &
./gradlew integrationTest --tests '*EmbeddedIntegrationSpec*'
docker-compose -f docker-compose-embedded.yml down
docker-build:
docker build --progress=plain \
--build-arg GRADLE_ARGS='-Dnative.threads=2 -Dnative.xmx=3072m -Dnative.arch=native -Dnative.mode=dev' \
-t devatherock/email-sender:$(docker_tag) -f docker/Dockerfile .