openscad/scripts/travis-ci.sh

24 lines
335 B
Bash
Raw Normal View History

2013-05-14 01:04:54 +04:00
#!/bin/bash
2013-05-14 03:32:54 +04:00
qmake && make
if [[ $? != 0 ]]; then
echo "Error building OpenSCAD executable"
exit 1
fi
2013-05-14 01:04:54 +04:00
cd tests
2013-05-14 03:32:54 +04:00
cmake .
if [[ $? != 0 ]]; then
echo "Error configuring test suite"
exit 1
fi
2013-05-14 01:04:54 +04:00
make
2013-05-14 03:32:54 +04:00
if [[ $? != 0 ]]; then
echo "Error building test suite"
exit 1
fi
2013-05-14 01:04:54 +04:00
ctest
2013-05-14 03:32:54 +04:00
if [[ $? != 0 ]]; then
echo "Test failure"
exit 1
fi