#!/bin/bash

set -e

cd /root
mkdir github
cd github
git clone https://github.com/Spirals-Team/librepair.git

echo "LibRepair repository cloned."

cp librepair/travis/travis-install.sh .
chmod +x travis-install.sh

./travis-install.sh

echo "All dependencies installed for repairnator."

cd librepair/jtravis
mvn clean install -DskipTests=true

echo "JTravis compiled and installed"

cd ../repairnator
mvn clean install -DskipTests=true

echo "Repairnator compiled and installed"

cp repairnator-pipeline/target/repairnator-pipeline-*-with-dependencies.jar /root/repairnator-pipeline.jar

echo "Repairnator-pipeline jar file installed in /root directory"
#!/bin/bash

set -e

cd /root
mkdir github
cd github
git clone https://github.com/Spirals-Team/librepair.git

echo "LibRepair repository cloned."

cd librepair/jtravis
mvn clean install -DskipTests=true

echo "JTravis compiled and installed"

cd ../repairnator
mvn clean install -DskipTests=true

echo "Repairnator compiled and installed"

cp repairnator-pipeline/target/repairnator-pipeline-*-with-dependencies.jar /root/repairnator-pipeline.jar

echo "Repairnator-pipeline jar file installed in /root directory"
Fix script for building docker image
Fix script for building docker image
