Commit 2e77350f authored by garciay's avatar garciay
Browse files

Update Vagrant provider

parent ce267f2e
Loading
Loading
Loading
Loading
+16 −28
Original line number Diff line number Diff line
@@ -77,7 +77,7 @@ then
fi

cd /home/vagrant/dev 
svn co --username $USERNAME --password $PASSWORD --non-interactive https://oldforge.vagrant.org/svn/ITS/branches/STF525 ./STF525_Its 
svn co --username $USERNAME --password $PASSWORD --non-interactive https://oldforge.etsi.org/svn/ITS/branches/STF525 ./STF525_Its 
cd /home/vagrant/dev/STF525_Its/scripts
chmod 775 *.bash devenv.bash.*
cd /home/vagrant/dev/STF525_Its/docker
@@ -89,7 +89,6 @@ ln -sf /home/vagrant/dev/STF525_Its/scripts/devenv.bash.ubuntu /home/vagrant/dev
. /home/vagrant/devenv.bash

# Install all frameworks
cd ${HOME_FRAMEWORKS}

# Install asn1c
cd ${HOME_FRAMEWORKS}
@@ -107,15 +106,14 @@ cd ${HOME_FRAMEWORKS}/googletest/
cmake .
make CXX=g++
sudo make install
cd -

# Install latest LCOV
cd ${HOME_FRAMEWORKS}
mkdir -p ${HOME_FRAMEWORKS}/lcov
cd ${HOME_FRAMEWORKS}/lcov
wget http://ftp.de.debian.org/debian/pool/main/l/lcov/lcov_1.13.orig.tar.gz
tar xf lcov_1.13.orig.tar.gz
sudo make -C lcov-1.13/ install
cd -

# Install lcov to coveralls conversion
sudo gem install coveralls-lcov
@@ -130,33 +128,23 @@ wget 'http://ftp.halifax.rwth-aachen.de/eclipse/technology/epp/downloads/release
tar -zxvf ./eclipse-cpp-oxygen-2-linux-gtk-x86_64.tar.gz
rm -f ./eclipse-cpp-oxygen-2-linux-gtk-x86_64.tar.gz

# Checkout the project
if [ ${USERNAME} != '' ] && [ ${PASSWORD} != '' ]
then
    cd ${HOME}/tmp
    svn co --username $USERNAME --password $PASSWORD --non-interactive https://oldforge.etsi.org/svn/ITS/branches/STF525
else
    echo "Pease set <username> & <password> in your local Vagrantfile"
    exit -1
fi

sudo echo "" >> /etc/profile 
sudo echo "export HOME=/home/etsi" >> /etc/profile 
sudo echo "export LD_LIBRARY_PATH=/home/etsi/TriesAndDelete/etsi_its/lib:$LD_LIBRARY_PATH" >> /etc/profile 
sudo echo "export PATH=/home/etsi/bin:$PATH" >> /etc/profile 
sudo echo "cd /home/etsi" >> /etc/profile 
sudo echo ". ./devenv.bash" >> /etc/profile 

cd /home/vagrant
echo "" >> /home/vagrant/.bashrc 
echo "export HOME=/home/vagrant" >> /home/vagrant/.bashrc 
echo "export LD_LIBRARY_PATH=/home/vagrant/dev/etsi_its/lib:$LD_LIBRARY_PATH" >> /home/vagrant/.bashrc 
echo "export PATH=/home/vagrant/bin:$PATH" >> /home/vagrant/.bashrc 
echo "cd /home/vagrant" >> /home/vagrant/.bashrc 
echo ". ./devenv.bash" >> /home/vagrant/.bashrc 

. /home/vagrant/.bashrc
cd /home/vagrant/dev/STF525_Its/scripts
./build_titan.bash 
. /home/etsi/devenv.bash 
. /home/vagrant/devenv.bash 
./update_its_project.bash
#ln -sf ~/TriesAndDelete/etsi_its/lib/libItsAsn.so ~/lib/libItsAsn.so
#cd ${HOME}/TriesAndDelete/etsi_its/src/TestCodec/objs
#. ${HOME}/devenv.bash
#../bin/testcodec_generate_makefile.bash
#../bin/run_mtc.bash &
#../bin/run_ptcs.bash
#ln -sf ~/dev/etsi_its/lib/libItsAsn.so ~/lib/libItsAsn.so
cd ${HOME}/dev/etsi_its/src/TestCodec/objs
../bin/testcodec_generate_makefile.bash
../bin/run_all.bash

cd ${OLD_PWD}