From 2c085257fdfab7c60fa5369771f9ba63f2907333 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Sun, 4 Nov 2018 14:39:13 +0100 Subject: CI/AppVeyor: Avoid "warning" which causes non-zero retcode ErrorActionPreference=stop will fail the script if this warning occurs. see https://github.com/open62541/open62541/issues/2068 --- ci/build.ps1 | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ci') diff --git a/ci/build.ps1 b/ci/build.ps1 index 5b3eb4d27d..7097da8c32 100644 --- a/ci/build.ps1 +++ b/ci/build.ps1 @@ -50,6 +50,9 @@ if ($compiler -eq 'MINGW') { # Add MinGW to the PATH $env:PATH = "C:\msys64\mingw$bits\bin;$env:PATH" + # Avoid pacman "warning" which causes non-zero return code. https://github.com/open62541/open62541/issues/2068 + & C:\msys64\usr\bin\mkdir -p /var/cache/pacman/pkg + # Build third-party dependencies C:\msys64\usr\bin\bash -lc "pacman --verbose --noconfirm -Su" ; exitIfFailed C:\msys64\usr\bin\bash -lc "pacman --verbose --noconfirm --needed -S $mingwPackages" ; exitIfFailed -- cgit From 85761dd4269bff17e7607020bbb5ed9994afca61 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Tue, 20 Nov 2018 20:20:11 +0100 Subject: CI/Travis/macOS: Fix "brew reinstall" invocation (#9259) "-s" is "--build-from-source", an option to `brew install`. This was never a documented option per `brew help reinstall`. It's not clear why we were using this option, but it now fails the CI build. ref https://github.com/Homebrew/brew/pull/5274 ref https://github.com/Homebrew/brew/issues/1656 --- ci/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ci') diff --git a/ci/install.sh b/ci/install.sh index 2cb8e78e67..4aefe22fb5 100755 --- a/ci/install.sh +++ b/ci/install.sh @@ -10,7 +10,7 @@ fi if [[ "${TRAVIS_OS_NAME}" == osx ]]; then brew install ninja brew install gettext - brew reinstall -s libtool + brew reinstall libtool brew install ccache export PATH="/usr/local/opt/ccache/libexec:$PATH" fi -- cgit From 2f6364ea4b54a1ff337d0e5168454c4949e3fd8a Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Tue, 20 Nov 2018 10:05:07 +0100 Subject: travis: switch from Ubuntu 14.04 to 16.04 Travis is phasing out its support for containers, so we remove the `sudo: false`, which will be a no-op soon. Reference: https://blog.travis-ci.com/2018-11-19-required-linux-infrastructure-migration Changes for Linux: - Xenial comes with libtool installed already. It only provides "libtoolize", though. For "libtool" we need to install libtool-bin. --- ci/install.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'ci') diff --git a/ci/install.sh b/ci/install.sh index 4aefe22fb5..7efbaf33b5 100755 --- a/ci/install.sh +++ b/ci/install.sh @@ -8,10 +8,8 @@ if [[ "${CI_TARGET}" == lint ]]; then fi if [[ "${TRAVIS_OS_NAME}" == osx ]]; then - brew install ninja - brew install gettext - brew reinstall libtool brew install ccache + brew install ninja export PATH="/usr/local/opt/ccache/libexec:$PATH" fi -- cgit From 2cbac719c3eba8ea5826e16912126d70222911ed Mon Sep 17 00:00:00 2001 From: James McCoy Date: Tue, 20 Nov 2018 20:22:42 -0500 Subject: Downgrade to clang-4.0 to avoid false-positive warnings from clang * -Wtautological-compare error: self-comparison always evaluates to true [-Werror,-Wtautological-compare] for (win_T *wp = ((curtab) == curtab) ? firstwin : (curtab)->tp_firstwin; wp != ((void*)0); wp = wp->w_next) { * -Wconversion error: implicit conversion loses floating-point precision: 'const float_T' (aka 'const double') to 'float' [-Werror,-Wconversion] do { const float_T flt_ = (tv->vval.v_float); switch ((sizeof (flt_) == sizeof (float) ? __fpclassifyf (flt_) : sizeof (flt_) == sizeof (double) ? __fpclassify (flt_) : __fpclassifyl (flt_))) { case 0: { ga_concat(gap, (char_u *)(char_u *) "str2float('nan')"); break; } case 1: { if (flt_ < 0) { ga_append(gap, '-'); } ga_concat(gap, (char_u *)(char_u *) "str2float('inf')"); break; } default: { char numbuf[NUMBUFLEN]; vim_snprintf(numbuf, ((sizeof(numbuf)/sizeof((numbuf)[0])) / ((size_t)(!(sizeof(numbuf) % sizeof((numbuf)[0]))))), "%g", flt_); ga_concat(gap, (char_u *)(char_u *) numbuf); } } } while (0); ~~~~~~~~~~~~~ ^~~~ --- ci/common/test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ci') diff --git a/ci/common/test.sh b/ci/common/test.sh index a6afd1df4c..f1c5454e3f 100644 --- a/ci/common/test.sh +++ b/ci/common/test.sh @@ -83,7 +83,7 @@ valgrind_check() { asan_check() { if test "${CLANG_SANITIZER}" = "ASAN_UBSAN" ; then - check_logs "${1}" "*san.*" | asan_symbolize + check_logs "${1}" "*san.*" | $ASAN_SYMBOLIZE fi } -- cgit From cffe2d4642a7d27a76ddb5516ff9df6a4e9e494d Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Sun, 16 Dec 2018 10:47:59 +0100 Subject: CI/AppVeyor: install "pynvim" python package #9371 --- ci/build.ps1 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ci') diff --git a/ci/build.ps1 b/ci/build.ps1 index 7097da8c32..1ba3fa8a6b 100644 --- a/ci/build.ps1 +++ b/ci/build.ps1 @@ -68,14 +68,14 @@ elseif ($compiler -eq 'MSVC') { } # Setup python (use AppVeyor system python) -C:\Python27\python.exe -m pip install neovim ; exitIfFailed -C:\Python35\python.exe -m pip install neovim ; exitIfFailed +C:\Python27\python.exe -m pip install pynvim ; exitIfFailed +C:\Python35\python.exe -m pip install pynvim ; exitIfFailed # Disambiguate python3 move c:\Python35\python.exe c:\Python35\python3.exe $env:PATH = "C:\Python35;C:\Python27;$env:PATH" # Sanity check -python -c "import neovim; print(str(neovim))" ; exitIfFailed -python3 -c "import neovim; print(str(neovim))" ; exitIfFailed +python -c "import pynvim; print(str(pynvim))" ; exitIfFailed +python3 -c "import pynvim; print(str(pynvim))" ; exitIfFailed $env:PATH = "C:\Ruby24\bin;$env:PATH" gem.cmd install neovim -- cgit From c926ba1dc4f7517d411a80eac7764e84337d3ebd Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Wed, 26 Dec 2018 11:55:26 -0500 Subject: ci: use homebrew addon to simplify shell scripts --- ci/before_install.sh | 4 ---- ci/install.sh | 2 -- 2 files changed, 6 deletions(-) (limited to 'ci') diff --git a/ci/before_install.sh b/ci/before_install.sh index 86dd78af48..d8cf38d314 100755 --- a/ci/before_install.sh +++ b/ci/before_install.sh @@ -7,10 +7,6 @@ if [[ "${CI_TARGET}" == lint ]]; then exit fi -if [[ "${TRAVIS_OS_NAME}" == osx ]]; then - >/dev/null brew update -fi - echo 'python info:' ( 2>&1 python --version || true diff --git a/ci/install.sh b/ci/install.sh index 7efbaf33b5..3eea63315d 100755 --- a/ci/install.sh +++ b/ci/install.sh @@ -8,8 +8,6 @@ if [[ "${CI_TARGET}" == lint ]]; then fi if [[ "${TRAVIS_OS_NAME}" == osx ]]; then - brew install ccache - brew install ninja export PATH="/usr/local/opt/ccache/libexec:$PATH" fi -- cgit From a9b1937e5afc8b418f60621749fb00875bc645dc Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Thu, 27 Dec 2018 09:44:52 -0500 Subject: ci: install neovim gem on macOS High Sierra has ruby 2.3 preinstalled so neovim gem should work. --- ci/install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ci') diff --git a/ci/install.sh b/ci/install.sh index 3eea63315d..12985098cd 100755 --- a/ci/install.sh +++ b/ci/install.sh @@ -22,11 +22,11 @@ if ! [ "${TRAVIS_OS_NAME}" = osx ] ; then # Use default CC to avoid compilation problems when installing Python modules. echo "Install neovim module for Python 2." CC=cc python2.7 -m pip -q install --user --upgrade neovim - - echo "Install neovim RubyGem." - gem install --no-document --version ">= 0.2.0" neovim fi +echo "Install neovim RubyGem." +gem install --no-document --version ">= 0.8.0" neovim + echo "Install neovim npm package" npm install -g neovim npm link neovim -- cgit