diff options
author | James McCoy <jamessan@jamessan.com> | 2020-11-16 21:26:47 -0500 |
---|---|---|
committer | James McCoy <jamessan@jamessan.com> | 2020-11-24 21:26:02 -0500 |
commit | d93e397232ad93c106c143a720c256f96f0588e5 (patch) | |
tree | b915edc2ab79a22cfe795f4214f4abeaa62c9dc8 | |
parent | 1731ef31760ebf9574ff898a67c035bb4051b31f (diff) | |
download | rneovim-d93e397232ad93c106c143a720c256f96f0588e5.tar.gz rneovim-d93e397232ad93c106c143a720c256f96f0588e5.tar.bz2 rneovim-d93e397232ad93c106c143a720c256f96f0588e5.zip |
ci: s/TRAVIS_OS_NAME/CI_OS_NAME/ for non-Travis-specific code
-rw-r--r-- | .travis.yml | 1 | ||||
-rw-r--r-- | ci/common/build.sh | 2 | ||||
-rw-r--r-- | ci/common/test.sh | 4 |
3 files changed, 4 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml index 2f4603fa5c..b68f4f1bc1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/ci/common/build.sh b/ci/common/build.sh index f0bdec0a0e..0ee4b7493f 100644 --- a/ci/common/build.sh +++ b/ci/common/build.sh @@ -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 "${@}" diff --git a/ci/common/test.sh b/ci/common/test.sh index 4ef6260339..118e181dfa 100644 --- a/ci/common/test.sh +++ b/ci/common/test.sh @@ -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 |