diff options
author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2022-01-01 18:42:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-01 12:42:26 -0500 |
commit | f86039de1e6583cbdb48a33d89c782ff65baf767 (patch) | |
tree | 2156e6cc7d95be930b57a997d6c02651253d2508 | |
parent | 302beaa36b8b53765c986bd88741e0d547256938 (diff) | |
download | rneovim-f86039de1e6583cbdb48a33d89c782ff65baf767.tar.gz rneovim-f86039de1e6583cbdb48a33d89c782ff65baf767.tar.bz2 rneovim-f86039de1e6583cbdb48a33d89c782ff65baf767.zip |
ci: remove outdated travis-specific code (#16869)
-rwxr-xr-x | ci/before_install.sh | 5 | ||||
-rwxr-xr-x | ci/before_script.sh | 13 | ||||
-rwxr-xr-x | ci/install.sh | 4 | ||||
-rwxr-xr-x | ci/script.sh | 9 |
4 files changed, 3 insertions, 28 deletions
diff --git a/ci/before_install.sh b/ci/before_install.sh index f12f972fe0..f4ea720d09 100755 --- a/ci/before_install.sh +++ b/ci/before_install.sh @@ -17,8 +17,7 @@ echo 'Python info:' pyenv versions ) 2>&1 | sed 's/^/ /' || true -# Use pyenv, but not for OSX on Travis, where it only has the "system" version. -if [[ "${TRAVIS_OS_NAME}" != osx ]] && command -v pyenv; then +if command -v pyenv; then echo 'Setting Python versions via pyenv' # Prefer Python 2 over 3 (more conservative). @@ -38,7 +37,7 @@ fi echo "Install node (LTS)" -if [[ "${TRAVIS_OS_NAME}" == osx ]] || [ ! -f ~/.nvm/nvm.sh ]; then +if [ ! -f ~/.nvm/nvm.sh ]; then curl -o ~/.nvm/nvm.sh https://raw.githubusercontent.com/creationix/nvm/master/nvm.sh fi diff --git a/ci/before_script.sh b/ci/before_script.sh index 701fe1d9eb..f7216338d4 100755 --- a/ci/before_script.sh +++ b/ci/before_script.sh @@ -6,12 +6,6 @@ set -o pipefail CI_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" source "${CI_DIR}/common/build.sh" -# Enable ipv6 on Travis. ref: a39c8b7ce30d -if test -n "${TRAVIS_OS_NAME}" && ! test "${TRAVIS_OS_NAME}" = osx ; then - echo "before_script.sh: enable ipv6" - sudo sysctl -w net.ipv6.conf.lo.disable_ipv6=0 -fi - # Test some of the configuration variables. if [[ -n "${GCOV}" ]] && [[ ! $(type -P "${GCOV}") ]]; then echo "\$GCOV: '${GCOV}' is not executable." @@ -27,13 +21,6 @@ ccache -s # Reset ccache stats for real results in before_cache. ccache --zero-stats -if [[ "${TRAVIS_OS_NAME}" == osx ]]; then - # Adds user to a dummy group. - # That allows to test changing the group of the file by `os_fchown`. - sudo dscl . -create /Groups/chown_test - sudo dscl . -append /Groups/chown_test GroupMembership "${USER}" -fi - # Compile dependencies. build_deps diff --git a/ci/install.sh b/ci/install.sh index 1edc1138ee..72e193a353 100755 --- a/ci/install.sh +++ b/ci/install.sh @@ -8,10 +8,6 @@ if [[ "${CI_TARGET}" == lint ]]; then exit fi -if [[ "${TRAVIS_OS_NAME}" == osx ]]; then - export PATH="/usr/local/opt/ccache/libexec:$PATH" -fi - # Use default CC to avoid compilation problems when installing Python modules. echo "Install neovim module for Python 3." CC=cc python3 -m pip -q install --user --upgrade pynvim diff --git a/ci/script.sh b/ci/script.sh index c8025ce34d..74fc4eda6c 100755 --- a/ci/script.sh +++ b/ci/script.sh @@ -3,14 +3,7 @@ set -e set -o pipefail -# This will pass the environment variables down to a bash process which runs -# as $USER, while retaining the environment variables defined and belonging -# to secondary groups given above in usermod. -if [[ "${TRAVIS_OS_NAME}" == osx ]]; then - sudo -E su "${USER}" -c "ci/run_${CI_TARGET}.sh" -else - ci/run_${CI_TARGET}.sh -fi +ci/run_${CI_TARGET}.sh if [[ -s "${GCOV_ERROR_FILE}" ]]; then echo '=== Unexpected gcov errors: ===' |