Adding automake based build and units to Travis CI.

This commit is contained in:
Martin Dvorak 2018-08-12 11:25:54 +02:00
parent d201ef1f84
commit e99728ac5e
2 changed files with 22 additions and 16 deletions

View file

@ -37,19 +37,17 @@ before_install:
- eval "${MATRIX_EVAL}"
install:
- sudo apt-get install -qq qttools5-dev-tools
- sudo apt-get install -qq ccache
- sudo apt-get install -qq libgtest-dev
- sudo apt-get install -qq qttools5-dev-tools ccache
- sudo apt-get install -qq automake gcc make libncursesw5-dev libreadline-dev
- "export HSTRHOME=`pwd`"
- cd /usr/src/gtest # I have to build Google Test Framework myself
- sudo apt-get install -qq cmake
- sudo cmake .
- sudo make
- sudo mv libg* /usr/lib/
script: # make lib unit tests > run lib unit tests > make MF > install MF
script:
- echo "1) make hstr"
- cd "${HSTRHOME}"
- eval "${MATRIX_EVAL}"
- qmake hstr.pro
- make
- cd build/tarball && ./tarball-automake.sh
- cd "${HSTRHOME}"
- ./configure && make
- ./hstr --version
- echo "2) run unit tests"
- cd "${HSTRHOME}"
- cd build && test-units.sh

View file

@ -1,8 +1,16 @@
Implementation
==============
Implementation notes:
Remote debug:
* [Debugging](#debugging)
* [Unit tests](#unit-tests)
# Debugging
Remote debug - gdb server (program is running) + Eclipse debug (debugger w/ code)
* gdb server (program is running) + Eclipse debug (debugger w/ code)
* `cd ~/p/hstr/github/hstr/Debug && gdbserver :9999 ./hh`
* Eclipse/Debug Configuration/Using GDB Manual Remote Debugger launching|Debugger tab/Connection port: 9999
1. `cd ~/p/hstr/github/hstr/Debug && gdbserver :9999 ./hh`
1. Eclipse/Debug Configuration/Using GDB Manual Remote Debugger launching|Debugger tab/Connection port: 9999
# Unit tests
HSTR unit tests are written using Unity
http://www.throwtheswitch.org/unity/