Skip to content

Commit

Permalink
Fix nasa#39, Improve CI testing
Browse files Browse the repository at this point in the history
  • Loading branch information
skliper committed Jan 8, 2020
1 parent 06574dc commit 8ae0bda
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@ addons:
- ubuntu-toolchain-r-test
packages:
- cmake
env:
global:
- STRICT_NO_WARNINGS=true
- SIMULATION=native
- ENABLE_UNIT_TESTS=true
matrix:
- BUILDTYPE=release OMIT_DEPRECATED=true
- BUILDTYPE=release OMIT_DEPRECATED=false
- BUILDTYPE=debug OMIT_DEPRECATED=true
- BUILDTYPE=debug OMIT_DEPRECATED=false

before_install:
- sudo apt-get install cppcheck
Expand All @@ -36,5 +46,26 @@ script:
- make prep
- make
- make install
# Run unit tests and generate coverage results
- make test
- make lcov
# Eventually check/enforce minimum coverage
# Make documentation
- make doc
- make usersguide
- make osalguide
# Eventually enforce no doxygen warnings
# List cpu1 for core binary
- ls build/exe/cpu1/
# Start cFE (pipe output to file), pause, send reset command, check outputs
- cd build/exe/cpu1
- ./core-cpu1 > cFS_startup.txt &
- sleep 30
- ../host/cmdUtil --endian=LE --pktid=0x1806 --cmdcode=2 --half=0x0002
- |
if [[ -n $(grep -i "warn\|err\|fail" cFS_startup.txt) ]]; then
echo "Must resolve warn|err|fail in cFS startup before submitting a pull request"
echo ""
grep -i 'warn\|err\|fail' cFS_startup.txt
exit -1
fi

0 comments on commit 8ae0bda

Please sign in to comment.