mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-04 20:54:21 +03:00
Merge pull request #1056 from urbit/unbreak-ci-deploy
[CI] fix deploy phase, move coredump backtrace to a script
This commit is contained in:
commit
b93fccf82b
24
.travis.yml
24
.travis.yml
@ -2,20 +2,6 @@ language: node_js
|
|||||||
node_js:
|
node_js:
|
||||||
- 4
|
- 4
|
||||||
|
|
||||||
script:
|
|
||||||
- meson . ./build --buildtype=debugoptimized -Dgc=true -Dprof=true
|
|
||||||
- cd ./build
|
|
||||||
- ninja
|
|
||||||
- sudo ninja install
|
|
||||||
- cd ../.travis
|
|
||||||
- ulimit -c unlimited -S
|
|
||||||
- npm install
|
|
||||||
# || 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
|
# Uncomment me if this gets annoying
|
||||||
#
|
#
|
||||||
# notifications:
|
# notifications:
|
||||||
@ -34,6 +20,16 @@ install:
|
|||||||
- git checkout $(cat ../.travis/pin-arvo-commit.txt)
|
- git checkout $(cat ../.travis/pin-arvo-commit.txt)
|
||||||
- cd ..
|
- cd ..
|
||||||
|
|
||||||
|
script:
|
||||||
|
- meson . ./build --buildtype=debugoptimized -Dgc=true -Dprof=true
|
||||||
|
- cd ./build
|
||||||
|
- ninja
|
||||||
|
- sudo ninja install
|
||||||
|
- cd ../.travis
|
||||||
|
- npm install
|
||||||
|
- ulimit -c unlimited -S
|
||||||
|
- npm run -s test; bash print-core-backtrace.sh $?
|
||||||
|
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
packages:
|
packages:
|
||||||
|
17
.travis/print-core-backtrace.sh
Normal file
17
.travis/print-core-backtrace.sh
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -euo pipefail
|
||||||
|
set -x
|
||||||
|
|
||||||
|
RESULT=$1
|
||||||
|
|
||||||
|
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
|
Loading…
Reference in New Issue
Block a user