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_SLOPPINESS=time_macros,file_macro
|
||||
- CCACHE_BASEDIR="$TRAVIS_BUILD_DIR"
|
||||
- CI_OS_NAME="$TRAVIS_OS_NAME"
|
||||
|
||||
anchors:
|
||||
envs: &common-job-env
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
_stat() {
|
||||
if test "${TRAVIS_OS_NAME}" = osx ; then
|
||||
if test "${CI_OS_NAME}" = osx ; then
|
||||
stat -f %Sm "${@}"
|
||||
else
|
||||
stat -c %y "${@}"
|
||||
|
|
|
@ -15,7 +15,7 @@ print_core() {
|
|||
return 0
|
||||
fi
|
||||
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}"
|
||||
else
|
||||
gdb -n -batch -ex 'thread apply all bt full' "${app}" -c "${core}"
|
||||
|
@ -30,7 +30,7 @@ check_core_dumps() {
|
|||
fi
|
||||
local app="${1:-${BUILD_DIR}/bin/nvim}"
|
||||
local cores
|
||||
if test "${TRAVIS_OS_NAME}" = osx ; then
|
||||
if test "${CI_OS_NAME}" = osx ; then
|
||||
cores="$(find /cores/ -type f -print)"
|
||||
local _sudo='sudo'
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue