diff options
author | Daniel Hahler <git@thequod.de> | 2019-06-14 13:39:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-14 13:39:57 +0200 |
commit | 93f8c2793cf5020d6fca00b6f10e4a158578034f (patch) | |
tree | 417aba79b1256c6ca5567bbdc037b09d9de7dc4e | |
parent | fdbb5a8f727c8fa2f84f6ae3952598a25db37cb3 (diff) | |
download | rneovim-93f8c2793cf5020d6fca00b6f10e4a158578034f.tar.gz rneovim-93f8c2793cf5020d6fca00b6f10e4a158578034f.tar.bz2 rneovim-93f8c2793cf5020d6fca00b6f10e4a158578034f.zip |
ci: AppVeyor: fix cov job, remove duplicate non-cov one (#10217)
* ci: AppVeyor: set GCOV_ERROR_FILE
This prevents the warnings/errors to be spilled into test results,
causing them to fail them, e.g.:
[ FAILED ] C:/projects/neovim/test/functional\core\main_spec.lua @ 97: Command-line option -s errors out when trying to use nonexistent file with -s
C:/projects/neovim/test/functional\core\main_spec.lua:98: Expected objects to be the same.
Passed in:
(string) 'Cannot open for reading: "Xtest-functional-core-main-s.nonexistent": no such file or directory
profiling:C:\projects\neovim\build/src/nvim/CMakeFiles/nvim.dir/buffer.c.gcda:Data file mismatch - some data files may have been concurrently updated without locking support
'
Expected:
(string) 'Cannot open for reading: "Xtest-functional-core-main-s.nonexistent": no such file or directory
'
stack traceback:
C:/projects/neovim/test/functional\core\main_spec.lua:98: in function <C:/projects/neovim/test/functional\core\main_spec.lua:97>
For reference, the locking appears to have been reworked for gcc 9.1 [1].
1: https://github.com/gcc-mirror/gcc/commit/56621355b
helpers.clear: keep GCOV_ERROR_FILE in environment
* ci: AppVeyor: remove MINGW_64 config (used with cov now)
Also:
- run MINGW_64-gcov first, and with PRs, since it provides coverage.
-rw-r--r-- | appveyor.yml | 12 | ||||
-rw-r--r-- | test/functional/helpers.lua | 1 |
2 files changed, 6 insertions, 7 deletions
diff --git a/appveyor.yml b/appveyor.yml index 0de9174adf..11ff5daa01 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -3,25 +3,23 @@ environment: APPVEYOR_CACHE_ENTRY_ZIP_ARGS: "-t7z -m0=lzma -mx=9" DEPS_BUILD_DIR: "C:/projects/nvim-deps" DEPS_PREFIX: "C:/projects/nvim-deps/usr" + # Silence/redirect errors due to missing locking support (via libgcov). + GCOV_ERROR_FILE: "$(TEMP)/libgcov-errors.log" image: Visual Studio 2017 configuration: +- MINGW_64-gcov +- MINGW_32 - MSVC_64 - MSVC_32 -- MINGW_64 -- MINGW_32 -- MINGW_64-gcov init: - ps: | # Pull requests: skip some build configurations to save time. - if ($env:APPVEYOR_PULL_REQUEST_HEAD_COMMIT -and $env:CONFIGURATION -match '^(MSVC_64|MINGW_32|MINGW_64-gcov)$') { + if ($env:APPVEYOR_PULL_REQUEST_HEAD_COMMIT -and $env:CONFIGURATION -match '^(MSVC_64|MINGW_32)$') { $env:APPVEYOR_CACHE_SKIP_SAVE = "true" Exit-AppVeyorBuild } # RDP #- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1')) -matrix: - allow_failures: - - configuration: MINGW_64-gcov install: [] before_build: - ps: Install-Product node 8 diff --git a/test/functional/helpers.lua b/test/functional/helpers.lua index cf4c7ce9b7..e7a93238e7 100644 --- a/test/functional/helpers.lua +++ b/test/functional/helpers.lua @@ -430,6 +430,7 @@ local function clear(...) 'PATH', 'NVIM_LOG_FILE', 'NVIM_RPLUGIN_MANIFEST', + 'GCOV_ERROR_FILE', }) do if not env_tbl[k] then env_tbl[k] = os.getenv(k) |