tests: run tests after build on Travis CI

v2.8-utf8proc
Sébastien Helleu 2014-07-22 21:05:53 +02:00
parent 9177e02f1a
commit 8386c1a210
2 changed files with 6 additions and 3 deletions

View File

@ -10,8 +10,9 @@ env:
before_script:
- echo 'APT::Install-Recommends "false";' | sudo tee -a /etc/apt/apt.conf
- sudo add-apt-repository ppa:bcandrea/backports
- sudo apt-get update -qq
- sudo apt-get -y install devscripts equivs python-pip libenchant-dev autopoint
- sudo apt-get -y install devscripts equivs python-pip libenchant-dev autopoint libcpputest-dev
- sudo mk-build-deps -i debian/control
- sudo pip install msgcheck pylint

View File

@ -52,15 +52,17 @@ run "cd $BUILDDIR"
if [ "$BUILDTOOL" = "cmake" ]; then
# build with CMake
run "cmake .. -DENABLE_MAN=ON -DENABLE_DOC=ON"
run "cmake .. -DENABLE_MAN=ON -DENABLE_DOC=ON -DENABLE_TESTS=ON"
run "make VERBOSE=1"
run "sudo make install"
run "ctest -V"
fi
if [ "$BUILDTOOL" = "autotools" ]; then
# build with autotools
run "../autogen.sh"
run "../configure --enable-man --enable-doc"
run "../configure --enable-man --enable-doc --enable-tests"
run "make"
run "sudo make install"
run "./tests/tests -v"
fi