|
| 1 | +#!/usr/bin/env bash |
| 2 | +# |
| 3 | +# DO NOT EDIT THIS FILE! |
| 4 | +# |
| 5 | +# If you have any questions about this script, or think it is not general |
| 6 | +# enough to cover your use case (i.e., you feel that you need to modify it |
| 7 | +# anyway), please contact Max Horn <[email protected]>. |
| 8 | +# |
| 9 | +set -ex |
| 10 | + |
| 11 | +# clone GAP into a subdirectory |
| 12 | +git clone --depth=2 -b ${GAPBRANCH:-master} https://github.com/gap-system/gap.git $GAPROOT |
| 13 | +cd $GAPROOT |
| 14 | + |
| 15 | +# for HPC-GAP, install ward, add suitable flags |
| 16 | +if [[ $HPCGAP = yes ]]; then |
| 17 | + git clone https://github.com/gap-system/ward |
| 18 | + cd ward |
| 19 | + CFLAGS= LDFLAGS= ./build.sh |
| 20 | + cd .. |
| 21 | + GAP_CONFIGFLAGS="$GAP_CONFIGFLAGS --enable-hpcgap" |
| 22 | +fi |
| 23 | + |
| 24 | +# build GAP in a subdirectory |
| 25 | +./autogen.sh |
| 26 | +./configure $GAP_CONFIGFLAGS |
| 27 | +make -j4 V=1 |
| 28 | + |
| 29 | +# download packages; instruct wget to retry several times if the |
| 30 | +# connection is refused, to work around intermittent failures |
| 31 | +make bootstrap-pkg-full WGET="wget -N --no-check-certificate --tries=5 --waitretry=5 --retry-connrefused" |
| 32 | + |
| 33 | +# build some packages; default is to build 'io' and 'profiling', in order to |
| 34 | +# generate coverage results. If you need to build additional packages (or for |
| 35 | +# some reason need to build a custom version of io or profiling), please set |
| 36 | +# the GAP_PKGS_TO_BUILD environment variable (e.g. in your .travis.yml), or |
| 37 | +# directly call BuildPackages.sh from .travis.yml. For an example of the |
| 38 | +# former, take a look at the cvec package. |
| 39 | +cd pkg |
| 40 | +for pkg in ${GAP_PKGS_TO_BUILD-io profiling}; do |
| 41 | + ../bin/BuildPackages.sh --strict $pkg* |
| 42 | +done |
0 commit comments