1 Star 1 Fork 0

ten2net/mapbox-animation

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
ci.sh 1.25 KB
一键复制 编辑 原始数据 按行查看 历史
Lucas Wojciechowski 提交于 2016-03-28 10:24 . Run linter during npm test
#!/usr/bin/env bash
set -e
set -o pipefail
# add npm packages to $PATH
export PATH=$(pwd)/node_modules/.bin:$PATH
# set up code coverage instrumentation
rm -rf coverage .nyc_output
# run linters
npm run lint
# run unit tests
tap --reporter dot --coverage --no-coverage-report test/js/*/*.js
# 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
# run render tests
istanbul cover --dir .nyc_output --include-pid --report none --print none test/render.test.js &&
istanbul cover --dir .nyc_output --include-pid --report none --print none test/query.test.js
EXIT_CODE=$?
# collect core dumps from render tests
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
# send coverage report to coveralls
nyc report --reporter=lcov
node ./node_modules/coveralls/bin/coveralls.js < ./coverage/lcov.info
# return original error code
if [[ ${EXIT_CODE} != 0 ]]; then
exit $EXIT_CODE
fi
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/gdsten2net/mapbox-animation.git
[email protected]:gdsten2net/mapbox-animation.git
gdsten2net
mapbox-animation
mapbox-animation
master

搜索帮助