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:
+2
-1
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user