Skip to content

hzitoun/xebia-technical-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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