mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
ci: s/TRAVIS_OS_NAME/CI_OS_NAME/ for non-Travis-specific code
This commit is contained in:
parent
1731ef3176
commit
d93e397232
@ -54,6 +54,7 @@ env:
|
|||||||
- CCACHE_COMPRESS=1
|
- CCACHE_COMPRESS=1
|
||||||
- CCACHE_SLOPPINESS=time_macros,file_macro
|
- CCACHE_SLOPPINESS=time_macros,file_macro
|
||||||
- CCACHE_BASEDIR="$TRAVIS_BUILD_DIR"
|
- CCACHE_BASEDIR="$TRAVIS_BUILD_DIR"
|
||||||
|
- CI_OS_NAME="$TRAVIS_OS_NAME"
|
||||||
|
|
||||||
anchors:
|
anchors:
|
||||||
envs: &common-job-env
|
envs: &common-job-env
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
_stat() {
|
_stat() {
|
||||||
if test "${TRAVIS_OS_NAME}" = osx ; then
|
if test "${CI_OS_NAME}" = osx ; then
|
||||||
stat -f %Sm "${@}"
|
stat -f %Sm "${@}"
|
||||||
else
|
else
|
||||||
stat -c %y "${@}"
|
stat -c %y "${@}"
|
||||||
|
@ -15,7 +15,7 @@ print_core() {
|
|||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
echo "======= Core file $core ======="
|
echo "======= Core file $core ======="
|
||||||
if test "${TRAVIS_OS_NAME}" = osx ; then
|
if test "${CI_OS_NAME}" = osx ; then
|
||||||
lldb -Q -o "bt all" -f "${app}" -c "${core}"
|
lldb -Q -o "bt all" -f "${app}" -c "${core}"
|
||||||
else
|
else
|
||||||
gdb -n -batch -ex 'thread apply all bt full' "${app}" -c "${core}"
|
gdb -n -batch -ex 'thread apply all bt full' "${app}" -c "${core}"
|
||||||
@ -30,7 +30,7 @@ check_core_dumps() {
|
|||||||
fi
|
fi
|
||||||
local app="${1:-${BUILD_DIR}/bin/nvim}"
|
local app="${1:-${BUILD_DIR}/bin/nvim}"
|
||||||
local cores
|
local cores
|
||||||
if test "${TRAVIS_OS_NAME}" = osx ; then
|
if test "${CI_OS_NAME}" = osx ; then
|
||||||
cores="$(find /cores/ -type f -print)"
|
cores="$(find /cores/ -type f -print)"
|
||||||
local _sudo='sudo'
|
local _sudo='sudo'
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user