Created
December 6, 2017 15:34
-
-
Save cvvergara/e7f41b38cd619af55780809cf3a7cde3 to your computer and use it in GitHub Desktop.
Using on pgRouting v2.6-dev
This file contains hidden or 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
#!/bin/bash | |
set -e | |
if [ -z $1 ]; then | |
VERSION="2.6.0" | |
else | |
VERSION=$1 | |
fi | |
function test_compile { | |
echo ------------------------------------ | |
echo ------------------------------------ | |
echo Compiling with $1 | |
echo ------------------------------------ | |
sudo update-alternatives --set gcc /usr/bin/gcc-$1 | |
cd build/ | |
#cmake .. | |
# Release RelWithDebInfo MinSizeRel Debug | |
#cmake -DCMAKE_BUILD_TYPE=Debug .. | |
#cmake -DDOC_USE_BOOTSTRAP=ON -DWITH_DOC=ON -DBUILD_DOXY=ON -DCMAKE_BUILD_TYPE=Debug -DES=ON -DPGROUTING_DEBUG=ON -DCMAKE_VERBOSE_MAKEFILE=ON .. | |
#to get the old style of documentation | |
cmake -DDOC_USE_BOOTSTRAP=ON -DWITH_DOC=ON -DBUILD_DOXY=ON -DCMAKE_BUILD_TYPE=Debug .. | |
#cmake -DDOC_USE_BOOTSTRAP=ON -DWITH_DOC=ON -DBUILD_DOXY=ON -DBUILD_LATEX=ON -DCMAKE_BUILD_TYPE=Debug .. | |
#cmake -DDOC_USE_BOOTSTRAP=ON -DWITH_DOC=ON -DBUILD_DOXY=ON -DPgRouting_DEBUG=ON -DCMAKE_BUILD_TYPE=Release .. | |
#rm -rf doxygen/* | |
#make doxy | |
#make doc | |
make | |
sudo make install | |
cd .. | |
tools/testers/algorithm-tester.pl -alg trsp | |
#tools/testers/algorithm-tester.pl -alg ksp | |
#tools/testers/algorithm-tester.pl -alg driving_distance | |
#tools/testers/algorithm-tester.pl -alg withPoints | |
#tools/testers/algorithm-tester.pl -alg trsp | |
#tools/testers/algorithm-tester.pl -alg withPoints -debug1 | |
#tools/testers/algorithm-tester.pl -alg pickDeliver | |
#tools/testers/algorithm-tester.pl -alg turnPenaltyGraph | |
#tools/testers/algorithm-tester.pl -alg turnPenaltyGraph -debug1 | |
#tools/testers/algorithm-tester.pl -alg lineGraph | |
#tools/testers/algorithm-tester.pl -alg lineGraph -debug1 | |
#tools/testers/algorithm-tester.pl -alg lineGraph -documentation | |
#exit 0 | |
# Verify with git diff that signatures did not change | |
sh tools/release-scripts/get_signatures.sh $VERSION ____sigs_routing____ sql/sigs | |
# Verify with git diff that trsp notes did not change | |
cp test/trsp/trsp_notes_v2.6.0.result doc/trsp/README.md | |
#cp build/sql/pgrouting--*.sql tools/sql-update-scripts | |
if [[ $(git status | grep 'pgrouting--') ]]; then | |
echo "**************************************************" | |
echo " WARNING" | |
echo "the signatures changed, copying generated files" | |
echo "Plese verify the changes are minimal" | |
echo "**************************************************" | |
git diff | |
fi | |
tools/testers/algorithm-tester.pl -documentation | |
cd build | |
#rm -rf doc/* | |
#make doc | |
#rm -rf doxygen/* | |
#make doxy | |
cd .. | |
tools/testers/algorithm-tester.pl | |
dropdb --if-exists ___pgr___test___ | |
createdb ___pgr___test___ | |
sh ./tools/testers/pg_prove_tests.sh vicky | |
dropdb ___pgr___test___ | |
#tools/testers/update-tester.sh | |
} | |
#test_compile 4.4 | |
#rm -rf build/* | |
test_compile 5 | |
#rm -rf build/* | |
#test_compile 4.9 | |
#rm -rf build/* | |
#test_compile 4.6 | |
#sudo rm -f /usr/lib/postgresql/9.3/lib/libpgrouting-2.5.so | |
#sudo rm -f /usr/share/postgresql/9.3/extension/pgrouting*2.5.0* | |
#rm -rf build/* | |
#test_compile 4.8 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment