Skip to content

Commit

Permalink
Merge PR #890: Put CI script into shell script
Browse files Browse the repository at this point in the history
  • Loading branch information
fingolfin authored Sep 29, 2016
2 parents b6874cf + f07ab00 commit 940739e
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 6 deletions.
7 changes: 1 addition & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,4 @@ script:
- ./configure --with-gmp=system
- make
- make bootstrap-pkg-full
- if [[ x"$ABI" != "x32" ]] ; then cd pkg/io* ; ./configure ; make ; cd ../.. ; cd pkg/profiling* ; ./configure ; make ; cd ../.. ; fi
- if [[ $TEST_SUITE = 'makemanuals' && $TRAVIS_OS_NAME = 'linux' ]]; then make manuals ; cat doc/*/make_manuals.out ; if [ `cat doc/*/make_manuals.out | grep -c "manual.lab written"` != '3' ]; then echo "Build failed"; exit 1; fi; fi
- if [[ $TEST_SUITE != 'makemanuals' && x"$ABI" != "x32" ]]; then echo "Read(\"tst/${TEST_SUITE}.g\"); quit;" | sh bin/gap.sh --cover coverage | tee testlog.txt | grep --colour=always -E "########> Diff|$" ; echo "CoverToJson(\"coverage\", \"coverage.json\"); quit;" | sh bin/gap.sh etc/cover2json.g ; cd bin/x86* ; gcov -o . ../../src/* ; cd ../.. ; cat testlog.txt | tail -n 2 | grep "total"; ( ! grep "########> Diff" testlog.txt ) ; fi
- if [[ $TEST_SUITE != 'makemanuals' && x"$ABI" = "x32" ]]; then echo "Read(\"tst/${TEST_SUITE}.g\"); quit;" | sh bin/gap.sh | tee testlog.txt | grep --colour=always -E "########> Diff|$" ; cat testlog.txt | tail -n 2 | grep "total"; ( ! grep "########> Diff" testlog.txt ) ; fi


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

# Continous integration testing script

if [[ $TEST_SUITE = 'makemanuals' && $TRAVIS_OS_NAME = 'linux' ]]
then
make manuals
cat doc/*/make_manuals.out
if [ `cat doc/*/make_manuals.out | grep -c "manual.lab written"` != '3' ]
then
echo "Build failed"
exit 1
fi
else
if [[ x"$ABI" == "x32" ]]
then
echo "Read(\"tst/${TEST_SUITE}.g\"); quit;" |\
sh bin/gap.sh |\
tee testlog.txt |\
grep --colour=always -E "########> Diff|$"
else
cd pkg/io*
./configure
make
cd ../..
cd pkg/profiling*
./configure
make
cd ../..
echo "Read(\"tst/${TEST_SUITE}.g\"); quit;" |\
sh bin/gap.sh --cover coverage |\
tee testlog.txt |\
grep --colour=always -E "########> Diff|$"
echo "CoverToJson(\"coverage\", \"coverage.json\"); quit;" |\
sh bin/gap.sh etc/cover2json.g
cd bin/x86* ; gcov -o . ../../src/*
cd ../..
fi;
cat testlog.txt | tail -n 2 |\
grep "total"; ( ! grep "########> Diff" testlog.txt )
fi;

0 comments on commit 940739e

Please sign in to comment.