-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 1e7006b
Showing
9 changed files
with
377 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#!/bin/bash | ||
|
||
mkdir -pv build | ||
cd build | ||
|
||
if [ -f "../cmake_six" ]; then | ||
echo "Attemting to run the script from within the repository." | ||
echo "This should no be done. Please copy this script to a separate folder and run it there." | ||
exit 1 | ||
fi | ||
|
||
if [ ! -d "SixTrack/.git" ]; then | ||
echo "SixTrack source missing, pulling ..." | ||
git clone https://github.com/SixTrack/SixTrack.git SixTrack | ||
fi | ||
cd SixTrack | ||
git fetch origin master | ||
git pull | ||
|
||
if [ -f "../lastCommit.txt" ]; then | ||
echo "Found last commit file" | ||
LAST=$(cat ../lastCommit.txt) | ||
echo "Last hash: $LAST" | ||
else | ||
LAST="None" | ||
echo "Last hash: $LAST" | ||
fi | ||
|
||
CURR=$(git rev-parse HEAD) | ||
echo "Current hash: $CURR" | ||
|
||
if [ "$LAST" != "$CURR" ]; then | ||
cd doc | ||
echo "Hashes differ. Building manual." | ||
./generateForWeb.sh &> ../../htmlBuild.log | ||
echo "Uploading to website." | ||
rsync -avPh html/ /afs/cern.ch/project/sixtrack/docs/ | ||
echo $CURR > ../../lastCommit.txt | ||
else | ||
echo "No change. Exiting." | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/bin/bash | ||
|
||
if [ -z "$1" ]; then | ||
echo "Please specify a version number" | ||
exit 1 | ||
fi | ||
VERSION=$1 | ||
BINS=/h/Code/SixTrack/Releases/$VERSION | ||
BUILD="-DCMAKE_Fortran_COMPILER=gfortran -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DCMAKE_BUILD_TYPE=Release" | ||
mkdir -p $BINS | ||
|
||
rm -rf build_exec1 | ||
mkdir -p build_exec1 | ||
cd build_exec1 | ||
eval cmake .. -G \"Unix Makefiles\" $BUILD -D64BIT=OFF -D32BIT=ON | ||
make -j4 | ||
cp SixTrack_$VERSION_* $BINS/SixTrack_$VERSION\_Win7_static_32bit_double.exe | ||
cd .. | ||
|
||
rm -rf build_exec2 | ||
mkdir -p build_exec2 | ||
cd build_exec2 | ||
eval cmake .. -G \"Unix Makefiles\" $BUILD -D64BIT=OFF -D32BIT=ON -DAVX=ON | ||
make -j4 | ||
cp SixTrack_$VERSION_* $BINS/SixTrack_$VERSION\_Win7_static_avx_32bit_double.exe | ||
cd .. | ||
|
||
rm -rf build_exec3 | ||
mkdir -p build_exec3 | ||
cd build_exec3 | ||
eval cmake .. -G \"Unix Makefiles\" $BUILD -D64BIT=OFF -D32BIT=ON -DBOINC=ON -DAPI=ON -DLIBARCHIVE=ON -DCR=ON | ||
make -j4 | ||
cp SixTrack_$VERSION_* $BINS/SixTrack_$VERSION\_boinc_Win7_static_32bit_double.exe | ||
cd .. | ||
|
||
rm -rf build_exec4 | ||
mkdir -p build_exec4 | ||
cd build_exec4 | ||
eval cmake .. -G \"Unix Makefiles\" $BUILD -D64BIT=OFF -D32BIT=ON -DBOINC=ON -DAPI=ON -DLIBARCHIVE=ON -DCR=ON -DAVX=ON | ||
make -j4 | ||
cp SixTrack_$VERSION_* $BINS/SixTrack_$VERSION\_boinc_Win7_static_avx_32bit_double.exe | ||
cd .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/bin/bash | ||
|
||
if [ -z "$1" ]; then | ||
echo "Please specify a version number" | ||
exit 1 | ||
fi | ||
VERSION=$1 | ||
BINS=/afs/cern.ch/user/v/volsen/SixTrack/Releases/$VERSION | ||
BUILD="-DCMAKE_Fortran_COMPILER=gfortran -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DCMAKE_BUILD_TYPE=Release" | ||
mkdir -p $BINS | ||
|
||
rm -rf build_exec1 | ||
mkdir -p build_exec1 | ||
cd build_exec1 | ||
eval cmake .. $BUILD | ||
make -j4 | ||
cp SixTrack_$VERSION_* $BINS/SixTrack_$VERSION\_Linux_static_64bit_double | ||
cd .. | ||
|
||
rm -rf build_exec2 | ||
mkdir -p build_exec2 | ||
cd build_exec2 | ||
eval cmake .. $BUILD -DAVX=ON | ||
make -j4 | ||
cp SixTrack_$VERSION_* $BINS/SixTrack_$VERSION\_Linux_static_avx_64bit_double | ||
cd .. | ||
|
||
rm -rf build_exec3 | ||
mkdir -p build_exec3 | ||
cd build_exec3 | ||
eval cmake .. $BUILD -DBOINC=ON -DAPI=ON -DLIBARCHIVE=ON -DCR=ON | ||
make -j4 | ||
cp SixTrack_$VERSION_* $BINS/SixTrack_$VERSION\_boinc_Linux_static_64bit_double | ||
cd .. | ||
|
||
rm -rf build_exec4 | ||
mkdir -p build_exec4 | ||
cd build_exec4 | ||
eval cmake .. $BUILD -DBOINC=ON -DAPI=ON -DLIBARCHIVE=ON -DCR=ON -DAVX=ON | ||
make -j4 | ||
cp SixTrack_$VERSION_* $BINS/SixTrack_$VERSION\_boinc_Linux_static_avx_64bit_double | ||
cd .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/bin/bash | ||
|
||
if [ -z "$1" ]; then | ||
echo "Please specify a version number" | ||
exit 1 | ||
fi | ||
VERSION=$1 | ||
BINS=/h/Code/SixTrack/Releases/$VERSION | ||
BUILD="-DCMAKE_Fortran_COMPILER=gfortran -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DCMAKE_BUILD_TYPE=Release" | ||
mkdir -p $BINS | ||
|
||
rm -rf build_exec1 | ||
mkdir -p build_exec1 | ||
cd build_exec1 | ||
eval cmake .. -G \"Unix Makefiles\" $BUILD | ||
make -j4 | ||
cp SixTrack_$VERSION_* $BINS/SixTrack_$VERSION\_Win7_static_64bit_double.exe | ||
cd .. | ||
|
||
rm -rf build_exec2 | ||
mkdir -p build_exec2 | ||
cd build_exec2 | ||
eval cmake .. -G \"Unix Makefiles\" $BUILD -DAVX=ON | ||
make -j4 | ||
cp SixTrack_$VERSION_* $BINS/SixTrack_$VERSION\_Win7_static_avx_64bit_double.exe | ||
cd .. | ||
|
||
rm -rf build_exec3 | ||
mkdir -p build_exec3 | ||
cd build_exec3 | ||
eval cmake .. -G \"Unix Makefiles\" $BUILD -DBOINC=ON -DAPI=ON -DLIBARCHIVE=ON -DCR=ON | ||
make -j4 | ||
cp SixTrack_$VERSION_* $BINS/SixTrack_$VERSION\_boinc_Win7_static_64bit_double.exe | ||
cd .. | ||
|
||
rm -rf build_exec4 | ||
mkdir -p build_exec4 | ||
cd build_exec4 | ||
eval cmake .. -G \"Unix Makefiles\" $BUILD -DBOINC=ON -DAPI=ON -DLIBARCHIVE=ON -DCR=ON -DAVX=ON | ||
make -j4 | ||
cp SixTrack_$VERSION_* $BINS/SixTrack_$VERSION\_boinc_Win7_static_avx_64bit_double.exe | ||
cd .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/bin/bash | ||
|
||
cd /home/vkbo/Temp | ||
mkdir -pv SixTrackLinux | ||
cd SixTrackLinux | ||
if [ ! -d ".git" ]; then | ||
git clone https://github.com/SixTrack/SixTrack.git . | ||
fi | ||
|
||
rm *_test*.log | ||
git fetch master | ||
git pull | ||
|
||
rm -rf build_testStandard | ||
mkdir -p build_testStandard | ||
cd build_testStandard | ||
cmake .. -DCMAKE_Fortran_COMPILER=gfortran -DBUILD_TESTING=ON | tee ../cmake_testStandard.log | ||
make -j4 | tee ../make_testStandard.log | ||
cd .. | ||
|
||
rm -rf build_testCR | ||
mkdir -p build_testCR | ||
cd build_testCR | ||
cmake .. -DCMAKE_Fortran_COMPILER=gfortran -DBUILD_TESTING=ON -DCR=ON | tee ../cmake_testCR.log | ||
make -j4 | tee ../make_testCR.log | ||
cd .. | ||
|
||
cd build_testStandard | ||
ctest -L fast -E elens -j4 | tee ../ctestFast_testStandard.log | ||
cd .. | ||
|
||
cd build_testCR | ||
ctest -L fast -E elens -j4 | tee ../ctestFast_testCR.log | ||
cd .. | ||
|
||
cd build_testStandard | ||
ctest -L medium -E elens -j4 | tee ../ctestMedium_testStandard.log | ||
cd .. | ||
|
||
cd build_testCR | ||
ctest -L medium -E elens -j4 | tee ../ctestMedium_testCR.log | ||
cd .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/bin/bash | ||
|
||
if [ -z "$1" ]; then | ||
echo "Please specify a version number" | ||
exit 1 | ||
fi | ||
VERSION=$1 | ||
BINS=/h/Code/SixTrack/Releases/$VERSION | ||
BUILD="-DCMAKE_Fortran_COMPILER=gfortran -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DCMAKE_BUILD_TYPE=Release" | ||
mkdir -p $BINS | ||
|
||
rm -rf build_exec1 | ||
mkdir -p build_exec1 | ||
cd build_exec1 | ||
eval cmake .. -G \"Unix Makefiles\" $BUILD -D64BIT=OFF -D32BIT=ON | ||
make -j4 | ||
cp SixTrack_$VERSION_* $BINS/SixTrack_$VERSION\_Win7_static_32bit_double.exe | ||
cd .. | ||
|
||
rm -rf build_exec2 | ||
mkdir -p build_exec2 | ||
cd build_exec2 | ||
eval cmake .. -G \"Unix Makefiles\" $BUILD -D64BIT=OFF -D32BIT=ON -DAVX=ON | ||
make -j4 | ||
cp SixTrack_$VERSION_* $BINS/SixTrack_$VERSION\_Win7_static_avx_32bit_double.exe | ||
cd .. | ||
|
||
rm -rf build_exec3 | ||
mkdir -p build_exec3 | ||
cd build_exec3 | ||
eval cmake .. -G \"Unix Makefiles\" $BUILD -D64BIT=OFF -D32BIT=ON -DBOINC=ON -DAPI=ON -DLIBARCHIVE=ON -DCR=ON | ||
make -j4 | ||
cp SixTrack_$VERSION_* $BINS/SixTrack_$VERSION\_boinc_Win7_static_32bit_double.exe | ||
cd .. | ||
|
||
rm -rf build_exec4 | ||
mkdir -p build_exec4 | ||
cd build_exec4 | ||
eval cmake .. -G \"Unix Makefiles\" $BUILD -D64BIT=OFF -D32BIT=ON -DBOINC=ON -DAPI=ON -DLIBARCHIVE=ON -DCR=ON -DAVX=ON | ||
make -j4 | ||
cp SixTrack_$VERSION_* $BINS/SixTrack_$VERSION\_boinc_Win7_static_avx_32bit_double.exe | ||
cd .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/bin/bash | ||
|
||
if [ -z "$1" ]; then | ||
echo "Please specify a version number" | ||
exit 1 | ||
fi | ||
VERSION=$1 | ||
BINS=/afs/cern.ch/user/v/volsen/SixTrack/Releases/$VERSION | ||
BUILD="-DCMAKE_Fortran_COMPILER=gfortran -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DCMAKE_BUILD_TYPE=Release" | ||
mkdir -p $BINS | ||
|
||
rm -rf build_exec1 | ||
mkdir -p build_exec1 | ||
cd build_exec1 | ||
eval cmake .. $BUILD | ||
make -j4 | ||
cp SixTrack_$VERSION_* $BINS/SixTrack_$VERSION\_Linux_static_64bit_double | ||
cd .. | ||
|
||
rm -rf build_exec2 | ||
mkdir -p build_exec2 | ||
cd build_exec2 | ||
eval cmake .. $BUILD -DAVX=ON | ||
make -j4 | ||
cp SixTrack_$VERSION_* $BINS/SixTrack_$VERSION\_Linux_static_avx_64bit_double | ||
cd .. | ||
|
||
rm -rf build_exec3 | ||
mkdir -p build_exec3 | ||
cd build_exec3 | ||
eval cmake .. $BUILD -DBOINC=ON -DAPI=ON -DLIBARCHIVE=ON -DCR=ON | ||
make -j4 | ||
cp SixTrack_$VERSION_* $BINS/SixTrack_$VERSION\_boinc_Linux_static_64bit_double | ||
cd .. | ||
|
||
rm -rf build_exec4 | ||
mkdir -p build_exec4 | ||
cd build_exec4 | ||
eval cmake .. $BUILD -DBOINC=ON -DAPI=ON -DLIBARCHIVE=ON -DCR=ON -DAVX=ON | ||
make -j4 | ||
cp SixTrack_$VERSION_* $BINS/SixTrack_$VERSION\_boinc_Linux_static_avx_64bit_double | ||
cd .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/bin/bash | ||
|
||
if [ -z "$1" ]; then | ||
echo "Please specify a version number" | ||
exit 1 | ||
fi | ||
VERSION=$1 | ||
BINS=/h/Code/SixTrack/Releases/$VERSION | ||
BUILD="-DCMAKE_Fortran_COMPILER=gfortran -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DCMAKE_BUILD_TYPE=Release" | ||
mkdir -p $BINS | ||
|
||
rm -rf build_exec1 | ||
mkdir -p build_exec1 | ||
cd build_exec1 | ||
eval cmake .. -G \"Unix Makefiles\" $BUILD | ||
make -j4 | ||
cp SixTrack_$VERSION_* $BINS/SixTrack_$VERSION\_Win7_static_64bit_double.exe | ||
cd .. | ||
|
||
rm -rf build_exec2 | ||
mkdir -p build_exec2 | ||
cd build_exec2 | ||
eval cmake .. -G \"Unix Makefiles\" $BUILD -DAVX=ON | ||
make -j4 | ||
cp SixTrack_$VERSION_* $BINS/SixTrack_$VERSION\_Win7_static_avx_64bit_double.exe | ||
cd .. | ||
|
||
rm -rf build_exec3 | ||
mkdir -p build_exec3 | ||
cd build_exec3 | ||
eval cmake .. -G \"Unix Makefiles\" $BUILD -DBOINC=ON -DAPI=ON -DLIBARCHIVE=ON -DCR=ON | ||
make -j4 | ||
cp SixTrack_$VERSION_* $BINS/SixTrack_$VERSION\_boinc_Win7_static_64bit_double.exe | ||
cd .. | ||
|
||
rm -rf build_exec4 | ||
mkdir -p build_exec4 | ||
cd build_exec4 | ||
eval cmake .. -G \"Unix Makefiles\" $BUILD -DBOINC=ON -DAPI=ON -DLIBARCHIVE=ON -DCR=ON -DAVX=ON | ||
make -j4 | ||
cp SixTrack_$VERSION_* $BINS/SixTrack_$VERSION\_boinc_Win7_static_avx_64bit_double.exe | ||
cd .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/bin/bash | ||
|
||
cd /home/vkbo/Temp | ||
mkdir -pv SixTrackLinux | ||
cd SixTrackLinux | ||
if [ ! -d ".git" ]; then | ||
git clone https://github.com/SixTrack/SixTrack.git . | ||
fi | ||
|
||
rm *_test*.log | ||
git fetch master | ||
git pull | ||
|
||
rm -rf build_testStandard | ||
mkdir -p build_testStandard | ||
cd build_testStandard | ||
cmake .. -DCMAKE_Fortran_COMPILER=gfortran -DBUILD_TESTING=ON | tee ../cmake_testStandard.log | ||
make -j4 | tee ../make_testStandard.log | ||
cd .. | ||
|
||
rm -rf build_testCR | ||
mkdir -p build_testCR | ||
cd build_testCR | ||
cmake .. -DCMAKE_Fortran_COMPILER=gfortran -DBUILD_TESTING=ON -DCR=ON | tee ../cmake_testCR.log | ||
make -j4 | tee ../make_testCR.log | ||
cd .. | ||
|
||
cd build_testStandard | ||
ctest -L fast -E elens -j4 | tee ../ctestFast_testStandard.log | ||
cd .. | ||
|
||
cd build_testCR | ||
ctest -L fast -E elens -j4 | tee ../ctestFast_testCR.log | ||
cd .. | ||
|
||
cd build_testStandard | ||
ctest -L medium -E elens -j4 | tee ../ctestMedium_testStandard.log | ||
cd .. | ||
|
||
cd build_testCR | ||
ctest -L medium -E elens -j4 | tee ../ctestMedium_testCR.log | ||
cd .. |