diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-11-25 13:04:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-25 13:04:52 +0100 |
commit | 3a9fd4327a0cc5b21eb7a54a83d0446acbc7b14e (patch) | |
tree | 0db29401ca568a880a8b82fe1930ad3b492193c5 | |
parent | 8b39e4ec793334be0e48101830f66e05691393bd (diff) | |
parent | 2cbac719c3eba8ea5826e16912126d70222911ed (diff) | |
download | rneovim-3a9fd4327a0cc5b21eb7a54a83d0446acbc7b14e.tar.gz rneovim-3a9fd4327a0cc5b21eb7a54a83d0446acbc7b14e.tar.bz2 rneovim-3a9fd4327a0cc5b21eb7a54a83d0446acbc7b14e.zip |
Merge #9258 'CI/travis: switch to Ubuntu 16.04'
-rw-r--r-- | .travis.yml | 14 | ||||
-rw-r--r-- | ci/common/test.sh | 2 | ||||
-rwxr-xr-x | ci/install.sh | 4 | ||||
-rw-r--r-- | src/nvim/aucmd.c | 1 | ||||
-rw-r--r-- | src/nvim/eval/encode.c | 2 |
5 files changed, 11 insertions, 12 deletions
diff --git a/.travis.yml b/.travis.yml index 8ad9d7a6fb..d8ce0544af 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,5 @@ -dist: trusty -sudo: false +dist: xenial + language: c env: @@ -34,6 +34,7 @@ env: - ASAN_OPTIONS="detect_leaks=1:check_initialization_order=1:log_path=$LOG_DIR/asan" - TSAN_OPTIONS="log_path=$LOG_DIR/tsan" - UBSAN_OPTIONS="print_stacktrace=1 log_path=$LOG_DIR/ubsan" + - ASAN_SYMBOLIZE=asan_symbolize # Environment variables for Valgrind. - VALGRIND_LOG="$LOG_DIR/valgrind-%p.log" # If this file exists, the cache is valid (compile was successful). @@ -50,11 +51,12 @@ jobs: include: - stage: normal builds os: linux - compiler: clang + compiler: clang-4.0 env: > CLANG_SANITIZER=ASAN_UBSAN # Use Lua so that ASAN can test our embedded Lua support. 8fec4d53d0f6 CMAKE_FLAGS="$CMAKE_FLAGS -DPREFER_LUA=ON" + ASAN_SYMBOLIZE=asan_symbolize-4.0 sudo: true - os: linux compiler: gcc @@ -96,11 +98,11 @@ before_cache: ci/before_cache.sh addons: apt: packages: + - apport - autoconf - automake - - apport - build-essential - - clang + - clang-4.0 - cmake - cscope - g++-multilib @@ -108,7 +110,7 @@ addons: - gdb - language-pack-tr - libc6-dev-i386 - - libtool + - libtool-bin - locales - ninja-build - pkg-config 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 } 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 diff --git a/src/nvim/aucmd.c b/src/nvim/aucmd.c index fc421116ea..9ad3414b79 100644 --- a/src/nvim/aucmd.c +++ b/src/nvim/aucmd.c @@ -26,7 +26,6 @@ void aucmd_schedule_focusgained(bool gained) } static void do_autocmd_focusgained(bool gained) - FUNC_ATTR_NONNULL_ALL { static bool recursive = false; diff --git a/src/nvim/eval/encode.c b/src/nvim/eval/encode.c index 2563e38258..e9ab6cd3e2 100644 --- a/src/nvim/eval/encode.c +++ b/src/nvim/eval/encode.c @@ -933,7 +933,7 @@ char *encode_tv2json(typval_T *tv, size_t *len) #define TYPVAL_ENCODE_CONV_BOOL(tv, num) \ do { \ - if ((num)) { \ + if (num) { \ msgpack_pack_true(packer); \ } else { \ msgpack_pack_false(packer); \ |