-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
For Codecov, actually enable status messages in pull requests (so far, all were turned off, but for some reason codecov ignores this; still, better to specify actual intent in the file). For Travis, adapt scripts/build_pkg.sh to work with packages not using autoconf, so that we can use the same script across many packages. Also don't copy the tested package into GAP's pkg dir; instead, put it into its own GAP root which we tell GAP to look at before its usual GAP root. Modify scripts/gather-coverage.sh and scripts/run_tests.sh to use this modified list of GAP root dirs Simplify scripts/build_gap.sh significantly by using BuildPackages.sh. For some packages, also temporarily disable builds against GAP's stable branch. This is because its BuildPackages.sh does not support building individual packages. This will be resolved with the stable-4.9 branch.
- Loading branch information
1 parent
09c1af1
commit da5280c
Showing
6 changed files
with
51 additions
and
47 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 |
---|---|---|
|
@@ -5,7 +5,7 @@ coverage: | |
|
||
status: | ||
project: no | ||
patch: no | ||
patch: yes | ||
changes: no | ||
|
||
comment: | ||
|
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
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 |
---|---|---|
@@ -1,37 +1,31 @@ | ||
#!/usr/bin/env bash | ||
set -ex | ||
|
||
# build GAP in a subdirectory | ||
git clone --depth=2 https://github.com/gap-system/gap.git $GAPROOT | ||
# clone GAP into a subdirectory | ||
git clone --depth=2 -b ${GAPBRANCH:-master} https://github.com/gap-system/gap.git $GAPROOT | ||
cd $GAPROOT | ||
./autogen.sh | ||
./configure | ||
make -j4 V=1 | ||
make bootstrap-pkg-full | ||
|
||
GAPROOT="$(cd .. && pwd)" | ||
|
||
if [[ $ABI == 32 ]] | ||
then | ||
CONFIGFLAGS="CFLAGS=-m32 LDFLAGS=-m32 LOPTS=-m32 CXXFLAGS=-m32" | ||
# for HPC-GAP, install ward, add suitable flags | ||
if [[ $HPCGAP = yes ]]; then | ||
git clone https://github.com/gap-system/ward | ||
cd ward | ||
CFLAGS= LDFLAGS= ./build.sh | ||
cd .. | ||
GAP_CONFIGFLAGS="$GAP_CONFIGFLAGS --enable-hpcgap" | ||
fi | ||
|
||
# build some packages... | ||
cd pkg | ||
|
||
cd io-* | ||
# build GAP in a subdirectory | ||
./autogen.sh | ||
./configure $CONFIGFLAGS | ||
./configure $GAP_CONFIGFLAGS | ||
make -j4 V=1 | ||
cd .. | ||
|
||
cd profiling-* | ||
./autogen.sh | ||
# HACK to workaround problems when building with clang | ||
if [[ $CC = clang ]] | ||
then | ||
export CXX=clang++ | ||
fi | ||
./configure $CONFIGFLAGS | ||
make -j4 V=1 | ||
cd .. | ||
# download packages; instruct wget to retry several times if the | ||
# connection is refused, to work around intermittent failures | ||
make bootstrap-pkg-full WGET="wget -N --no-check-certificate --tries=5 --waitretry=5 --retry-connrefused" | ||
|
||
# build some packages (default is to build 'io' and 'profiling', | ||
# in order to generate coverage results) | ||
cd pkg | ||
for pkg in ${GAP_PKGS_TO_BUILD-io profiling}; do | ||
../bin/BuildPackages.sh --strict $pkg* | ||
done |
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
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
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 |
---|---|---|
@@ -1,7 +1,12 @@ | ||
#!/usr/bin/env bash | ||
set -ex | ||
|
||
GAP="$GAPROOT/bin/gap.sh --quitonbreak -q" | ||
GAP="$GAPROOT/bin/gap.sh -l $PWD; --quitonbreak" | ||
|
||
mkdir $COVDIR | ||
$GAP --cover $COVDIR/test.coverage tst/testall.g | ||
# unless explicitly turned off, we collect coverage data | ||
if [[ -z $NO_COVERAGE ]]; then | ||
mkdir $COVDIR | ||
GAP="$GAP --cover $COVDIR/test.coverage" | ||
fi | ||
|
||
$GAP tst/testall.g |