diff --git a/.travis.yml b/.travis.yml index 0903b75f2..31bb5ef79 100644 --- a/.travis.yml +++ b/.travis.yml @@ -39,19 +39,26 @@ before_install: script: # Set so any failing command will abort the build - set -e - # If only we could do -j12 ;) - - scons + # $CC will be either `clang` or `gcc` (If only we could do -j12 ;) + - scons $CC.debug + # We can be sure we're using the build/$CC.debug variant (-f so never err) + - rm -f build/rippled + - export RIPPLED_PATH="$PWD/build/$CC.debug/rippled" # See what we've actually built - - ldd ./build/rippled + - ldd $RIPPLED_PATH # Run unittests (under gdb) - | # create gdb script echo "set env MALLOC_CHECK_=3" > script.gdb echo "run" >> script.gdb echo "backtrace full" >> script.gdb # gdb --help - - cat script.gdb | gdb --ex 'set print thread-events off' --return-child-result --args ./build/rippled --unittest - # Run integration tests + - cat script.gdb | gdb --ex 'set print thread-events off' --return-child-result --args $RIPPLED_PATH --unittest - npm install + # Use build/(gcc|clang).debug/rippled + - | + echo "exports.default_server_config = {\"rippled_path\" : \"$RIPPLED_PATH\"};" > test/config.js + + # Run integration tests - npm test notifications: email: