[CI] print backtrace on bail

This commit is contained in:
Joe Bryan 2018-11-06 00:16:26 -05:00
parent 2c30ab9ec7
commit a356a83066
2 changed files with 10 additions and 3 deletions

View File

@ -8,8 +8,13 @@ script:
- ninja
- sudo ninja install
- cd ../.travis
- ulimit -c unlimited -S
- npm install
- npm run test
# || true so we continue
- npm run -s test || RESULT=$?
- if [[ ${RESULT} -eq 0 ]]; then exit 0; else for i in $(find ./ -maxdepth 1 -name 'core*' -print); do gdb urbit core* -ex "thread apply all bt" -ex "set pagination 0" -batch; done; fi;
- echo "build failed with status code $RESULT"
- exit $RESULT
# Uncomment me if this gets annoying
#
@ -47,6 +52,7 @@ addons:
- re2c
- libcurl4-gnutls-dev
- unzip
- gdb
# before_deploy: "make deb" # TODO
deploy:
skip_cleanup: true

View File

@ -17,7 +17,8 @@ Promise.resolve(urbit)
.catch(function(err){
return urbit.waitSilent()
.then(function(){
urbit.warn("Test aborted:", err);
return urbit.exit(1);
urbit.warn("Arvo test aborted:", err);
// we still exit 0, it's not our fault ...
return urbit.exit(0);
});
});