1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-06 17:53:13 +02:00

tests: run tests after build on Travis CI

This commit is contained in:
Sébastien Helleu
2014-07-22 21:05:53 +02:00
parent 9177e02f1a
commit 8386c1a210
2 changed files with 6 additions and 3 deletions
+2 -1
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
+4 -2
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