tests: run tests after build on Travis CI
parent
9177e02f1a
commit
8386c1a210
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue