Page MenuHomeSoftware Heritage
Paste P534

(An Untitled Masterwork)
ActivePublic

Authored by seirl on Sep 27 2019, 7:10 PM.
diff --git a/Makefile b/Makefile
index 524175c..be63f09 100644
--- a/Makefile
+++ b/Makefile
@@ -3,3 +3,12 @@
include ../Makefile.python
-include Makefile.local
+
+JAVA_TARGET=java/server/target/swh-graph-0.0.2-jar-with-dependencies.jar
+
+$(JAVA_TARGET):
+ cd java/server/ && mvn compile assembly:single
+
+java_server: $(JAVA_TARGET)
+
+.PHONY: $(JAVA_TARGET)
diff --git a/tox.ini b/tox.ini
index a33e8ce..4c24cdc 100644
--- a/tox.ini
+++ b/tox.ini
@@ -6,6 +6,7 @@ deps =
.[testing]
pytest-cov
commands =
+ make java_server
pytest --cov=swh --cov-branch {posargs}
[testenv:flake8]