Enable parallel tests.
[hoomd-blue.git] / packaging / mac / mac-build-nightly.sh
blobed332e07aa68b4923fe6841434f91fea5b910bb0
1 # number of builds to retain
2 NRPMS=8
3 BRANCH=maint
5 echo "--- Building nightly Mac OS X hoomd package on `date`"
7 # get up to the root of the tree
8 cd ..
9 cd ..
11 # update to the latest rev
12 git fetch
13 git checkout ${BRANCH}
14 git pull --ff-only
16 new_rev=`git describe`
18 # up another level out of the source repository
19 cd ..
21 #check the previous version built
22 atrev=`cat mac_old_revision || echo 0`
23 echo "Last revision built was $atrev"
24 echo "Current repository revision is $new_rev"
26 if [ "$atrev" = "$new_rev" ];then
27 echo "up to date"
28 else
29 echo $new_rev > mac_old_revision
31 # build the new package
32 rm -rf build
33 mkdir build
34 cd build
36 cmake -DENABLE_MPI=OFF -DENABLE_DOXYGEN=OFF -DENABLE_APP_BUNDLE_INSTALL=ON -DBOOST_ROOT=/opt/boost-1.52.0/ -DBoost_NO_SYSTEM_PATHS=ON -DPYTHON_EXECUTABLE=/usr/bin/python ../code
38 make package -j6
39 destination="daily/incoming/mac"
40 rsync -ue /usr/bin/ssh hoomd-*.dmg joaander@petry.engin.umich.edu:$destination/
43 rpmfiles=( `ls -td hoomd-*.dmg` )
44 numfiles=${#rpmfiles[*]}
45 for (( i=$(( $NRPMS )); $i < $numfiles ; i++ )); do
46 rm ${rpmfiles[$i]};
47 done
49 echo "--- Done!"
50 echo ""