Skip to content

Commit

Permalink
Merge pull request #114 from AnonymousProgrammerLandau/enableValgrind
Browse files Browse the repository at this point in the history
Add Valgrind to Travis builds.
  • Loading branch information
jeremyong committed Oct 28, 2015
2 parents ab633b1 + f7885fd commit 8fa6d38
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,16 @@ before_install:
- sudo apt-get update -qq

install:
- if [ "$CXX" = "g++" ]; then sudo apt-get install -qq g++-4.8; fi
- if [ "$CXX" = "g++" ]; then export PACKAGES_TO_INSTALL="g++-4.8"; fi
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.8"; fi
- sudo apt-get install lua5.2 liblua5.2-dev
- export PACKAGES_TO_INSTALL="${PACKAGES_TO_INSTALL} lua5.2 liblua5.2-dev"
- export PACKAGES_TO_INSTALL="${PACKAGES_TO_INSTALL} valgrind"
- sudo apt-get install -qq ${PACKAGES_TO_INSTALL}
- sudo ln -s /usr/lib/x86_64-linux-gnu/liblua5.2.so /usr/lib/liblua.so

before_script:
- mkdir build
- cd build
- cmake .. -DLUA_INCLUDE_DIR=/usr/include/lua5.2
env:
- BUILD_TYPE=Release
- BUILD_TYPE=RelWithDebInfo VALGRIND='valgrind --leak-check=full --error-exitcode=1'

script: make && ./test_runner
script:
- mkdir build && cd build && cmake .. -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DLUA_INCLUDE_DIR=/usr/include/lua5.2 && make && ${VALGRIND} ./test_runner

0 comments on commit 8fa6d38

Please sign in to comment.