mirror of
https://github.com/dvorka/hstr.git
synced 2024-11-10 17:18:35 +08:00
Adding automake based build and units to Travis CI.
This commit is contained in:
parent
d201ef1f84
commit
e99728ac5e
2 changed files with 22 additions and 16 deletions
22
.travis.yml
22
.travis.yml
|
@ -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
|
||||
|
|
16
doc/CODE.md
16
doc/CODE.md
|
@ -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/
|
||||
|
|
Loading…
Reference in a new issue