Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 1.12 KB

README.md

File metadata and controls

33 lines (26 loc) · 1.12 KB

Build Status codecov

Xebia-Technical-Test

(Image credits: here)

XTT - Xebia Technical Test

Build

To build the app and run the unit tests:

mvnw clean install

Run

To execute the app run the following command after replacing <PATH_TO_INPUT_FILE> (./docs/input.txt for example):

java -jar target\xtt-by-hz.jar <PATH_TO_INPUT_FILE>

Fan Of Docker?

Me too!

Build the Docker image

docker build -t hzitoun/xtt .

Run the container

After replacing <ABSOLUTE_PATH_TO_FOLDER_CONTAINING_INPUT.TXT>, run the following command:

docker run -v <ABSOLUTE_PATH_TO_FOLDER_CONTAINING_INPUT.TXT>:/xtt/data hzitoun/xtt