compile_and_check.sh (2448B)
1 #!/bin/bash 2 3 set -eu 4 set -x 5 6 start_debug_shell () { 7 if test "${SANDCASTLE_DEBUG_SHELL:-no}" = yes; then 8 bash --init-file <(echo \ 9 "echo 'Taler build failed, press enter to get the debug shell..'; read || exit $?" 10 ) -i 11 fi 12 } 13 trap start_debug_shell ERR 14 15 source ~/util.sh 16 17 echo -n Exporting the tags environment.. 18 set -a 19 . tags.sh 20 set +a 21 echo DONE 22 echo Exported tags: 23 { env | grep TAG_; } || echo NONE 24 25 export LD_LIBRARY_PATH=$HOME/local 26 27 num_processors=$(getconf _NPROCESSORS_ONLN) 28 JFLAG="-j$num_processors" 29 PREFIX=$HOME/local 30 31 git clone --depth=1 git://git.gnunet.org/libmicrohttpd --branch ${TAG_LIBMHD:-master} 32 git clone --depth=1 git://git.gnunet.org/gnunet --branch ${TAG_GNUNET:-master} 33 git clone --depth=1 git://git.taler.net/exchange --branch ${TAG_EXCHANGE:-master} 34 git clone --depth=1 git://git.taler.net/merchant --branch ${TAG_MERCHANT:-master} 35 git clone --depth=1 git://git.taler.net/libeufin --branch ${TAG_LIBEUFIN:-master} 36 git clone --depth=1 git://git.taler.net/taler-merchant-demos --branch ${TAG_MERCHANT_DEMOS:-master} 37 git clone --depth=1 git://git.taler.net/wallet-core --branch ${TAG_WALLET:-master} 38 git clone --depth=1 git://git.taler.net/sync --branch ${TAG_SYNC:-master} 39 40 cd ~/libmicrohttpd 41 ./bootstrap 42 ./configure --disable-doc --prefix=$PREFIX 43 make $JFLAG install 44 45 cd ~/gnunet 46 ./bootstrap 47 ./configure --enable-logging=verbose --disable-documentation --prefix=$PREFIX --with-microhttpd=$PREFIX 48 make $JFLAG install 49 50 cd ~/exchange 51 ./bootstrap 52 ./configure CFLAGS="-ggdb -O0" --enable-logging=verbose --disable-doc --prefix=$PREFIX --with-gnunet=$PREFIX 53 make $JFLAG install 54 55 cd ~/merchant 56 ./bootstrap 57 ./configure CFLAGS="-ggdb -O0" --enable-logging=verbose --disable-doc --prefix=$PREFIX --with-gnunet=$PREFIX --with-exchange=$PREFIX 58 make $JFLAG install 59 60 cd ~/libeufin 61 ./bootstrap 62 ./configure --prefix=$PREFIX 63 make install 64 65 cd ~/taler-merchant-demos 66 ./bootstrap 67 ./configure --destination=local 68 make install 69 70 cd ~/sync 71 ./bootstrap 72 ./configure CFLAGS="-ggdb -O0" --enable-logging=verbose --disable-doc --prefix=$PREFIX --with-gnunet=$PREFIX --with-exchange=$PREFIX 73 make $JFLAG install 74 75 cd ~/wallet-core 76 ./bootstrap 77 cd ~/wallet-core/packages/taler-wallet-cli 78 ./configure --prefix=$HOME/local 79 make install 80 cd ~/wallet-core/packages/taler-harness 81 ./configure --prefix=$HOME/local 82 make install 83 84 db_start 85 createdb talercheck 86 87 cd ~/exchange 88 make check 89 90 cd ~/merchant 91 make check 92 93 cd ~ 94 taler-harness run-integrationtests