Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable ci.sh to run on osx #2958

Merged
merged 1 commit into from
Aug 9, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ tap --reporter dot --coverage --no-coverage-report test/js/*/*.js test/build/web
# allow writing core files for render tests
ulimit -c unlimited -S
echo 'ulimit -c: '`ulimit -c`
echo '/proc/sys/kernel/core_pattern: '`cat /proc/sys/kernel/core_pattern`
sysctl kernel.core_pattern
if [[ $(uname -s) == 'Linux' ]]; then
echo '/proc/sys/kernel/core_pattern: '`cat /proc/sys/kernel/core_pattern`
sysctl kernel.core_pattern
fi

# run render tests
istanbul cover --dir .nyc_output --include-pid --report none --print none test/render.test.js &&
Expand All @@ -34,10 +36,12 @@ EXIT_CODE=$?
if [[ ${EXIT_CODE} != 0 ]]; then
echo "The program crashed with exit code ${EXIT_CODE}. We're now trying to output the core dump."
fi
for DUMP in $(find ./ -maxdepth 1 -name 'core*' -print); do
gdb `which node` ${DUMP} -ex "thread apply all bt" -ex "set pagination 0" -batch
rm -rf ${DUMP}
done
if [[ $(uname -s) == 'Linux' ]]; then
for DUMP in $(find ./ -maxdepth 1 -name 'core*' -print); do
gdb `which node` ${DUMP} -ex "thread apply all bt" -ex "set pagination 0" -batch
rm -rf ${DUMP}
done
fi

# send coverage report to coveralls
nyc report --reporter=lcov
Expand Down