Skip to content

Commit

Permalink
Duplicated some Travis CI builds with --enable-hpcgap option
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Konovalov committed Mar 15, 2017
1 parent 498f9ef commit fbaff09
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ env:
- TEST_SUITE=testinstall ABI=32 BUILDDIR=build CONFIGFLAGS=--with-gmp=builtin
- TEST_SUITE=testinstall ABI=64 BUILDDIR=build
- TEST_SUITE=testinstall ABI=64 BUILDDIR=build CONFIGFLAGS=--with-gmp=builtin
# all from above with --enable-hpcgap
- TEST_SUITE=testinstall ABI=32 HPCGAP=yes CONFIGFLAGS=--with-gmp=builtin
- TEST_SUITE=testinstall ABI=64 HPCGAP=yes
- TEST_SUITE=testinstall ABI=64 HPCGAP=yes CONFIGFLAGS=--with-gmp=builtin
# out of three builds
- TEST_SUITE=testinstall ABI=32 HPCGAP=yes BUILDDIR=build CONFIGFLAGS=--with-gmp=builtin
- TEST_SUITE=testinstall ABI=64 HPCGAP=yes BUILDDIR=build
- TEST_SUITE=testinstall ABI=64 HPCGAP=yes BUILDDIR=build CONFIGFLAGS=--with-gmp=builtin

# TODO: boehm GC, HPC-GAP compatibility mode

Expand Down Expand Up @@ -93,13 +101,7 @@ after_success:

script:
- export GAPROOT=$TRAVIS_BUILD_DIR
- ./autogen.sh
- mkdir -p $BUILDDIR
- cd $BUILDDIR
- $GAPROOT/configure $CONFIGFLAGS
- make -j4
- make bootstrap-pkg-full
- if [[ $BUILDDIR != . ]] ; then mv pkg $GAPROOT/ ; fi
- bash $GAPROOT/etc/ci-prepare.sh
- bash $GAPROOT/etc/ci.sh

notifications:
Expand Down
20 changes: 20 additions & 0 deletions etc/ci-prepare.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env bash

set -ex

./autogen.sh
if [[ $HPCGAP = yes ]]
then
git clone https://github.com/gap-system/ward
cd ward
./build.sh
cd ..
CONFIGFLAGS="$CONFIGFLAGS --enable-hpcgap"
fi
mkdir -p $BUILDDIR
cd $BUILDDIR
$GAPROOT/configure $CONFIGFLAGS
make -j4
make bootstrap-pkg-full
if [[ $BUILDDIR != . ]] ; then mv pkg $GAPROOT/ ; fi
cd $GAPROOT

0 comments on commit fbaff09

Please sign in to comment.