Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Put CI script into shell script #890

Merged
merged 2 commits into from
Sep 29, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;