Skip to content
Snippets Groups Projects
Commit b0b3c6bb authored by Ivan Slepov's avatar Ivan Slepov :speech_balloon:
Browse files

Added script for user branch CDash testing

parent 1f13d70d
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
#
# CDASH check script
#
HOST="$(hostname -s)"
BRANCH="$(git branch | grep \* | awk '{print $2}')"
SOURCE_DIR="$HOME/CDASH/mpdroot_$HOST"
LOG="$HOME/CDASH/LOGS/mpdroot_cdash_$HOST.log"
mkdir -p $HOME/CDASH/LOGS
date +"START TEST %y-%m-%d at %H:%M:%S" > $LOG
if [[ $1 = "Nightly" ]]; then
if [ -e "$SOURCE_DIR" ]
then
cd $SOURCE_DIR
git reset --hard HEAD
else
git clone git@git.jinr.ru:nica/mpdroot.git $SOURCE_DIR
cd $SOURCE_DIR
fi
./Dart.sh Nightly >> $LOG 2>&1
else
rm -rf $SOURCE_DIR
git clone -b $BRANCH git@git.jinr.ru:nica/mpdroot.git $SOURCE_DIR
cd $SOURCE_DIR
./Dart.sh Experimental >> $LOG 2>&1
fi
date +"FINISH TEST %y-%m-%d at %H:%M:%S" >> $LOG
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment