-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
65 lines (47 loc) · 1.26 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
.PHONY: check-licenses
install: install-python install-hooks
install-python:
poetry install
install-hooks: install-python
poetry run pre-commit install --install-hooks --overwrite
lint:
poetry run flake8 scripts/*.py --config .flake8
shellcheck scripts/*.sh
test:
$(MAKE) run-tests || $(MAKE) show-test-error-log
run-tests:
poetry run scripts/download_dependencies.py
mkdir -p target
mvn clean test jacoco:report > target/maven-test-output.txt 2>&1
check-licences:
scripts/check_python_licenses.sh
mvn validate
clean-packages:
rm -f src/main/resources/*.tgz
clean: clean-packages
rm -rf target
mvn clean
update-manifest:
poetry run scripts/update_manifest.py
build:
$(MAKE) build-java || $(MAKE) show-build-error-log
build-java:
poetry run scripts/download_dependencies.py
mkdir -p target
mvn package > target/maven-build-output.txt 2>&1
docker build .
build-latest: clean-packages update-manifest build
show-build-error-log:
echo "An error occured in build step"
cat target/maven-build-output.txt
exit 1
show-test-error-log:
echo "An error occured in test step"
cat target/maven-test-output.txt
exit 1
run:
mvn spring-boot:run
docker-run: build
docker-compose up
docker-rebuild-run: build
docker-compose up --no-deps --build fhir-validator