Browse Source

ci: s/TRAVIS_OS_NAME/CI_OS_NAME/ for non-Travis-specific code

pull/13373/head
James McCoy 2 months ago
parent
commit
d93e397232
No known key found for this signature in database GPG Key ID: DFE691AE331BA3DB
3 changed files with 4 additions and 3 deletions
  1. +1
    -0
      .travis.yml
  2. +1
    -1
      ci/common/build.sh
  3. +2
    -2
      ci/common/test.sh

+ 1
- 0
.travis.yml View File

@ -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
- 1
ci/common/build.sh View File

@ -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 "${@}"

+ 2
- 2
ci/common/test.sh View File

@ -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…
Cancel
Save