aboutsummaryrefslogtreecommitdiff
path: root/test/helpers.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-04-07 03:54:22 +0200
committerGitHub <noreply@github.com>2019-04-07 03:54:22 +0200
commita7a56293aad9427720fc72b86220dd65a79f6778 (patch)
treedee19226d8db0dae4047000f221ad29449766fb7 /test/helpers.lua
parent805b5f2e1ec074648e2142c1eaab1d2c089aa58d (diff)
downloadrneovim-a7a56293aad9427720fc72b86220dd65a79f6778.tar.gz
rneovim-a7a56293aad9427720fc72b86220dd65a79f6778.tar.bz2
rneovim-a7a56293aad9427720fc72b86220dd65a79f6778.zip
CI/AppVeyor: per-compiler deps cache #9852
The deps cache does not work for MSVC builds because the MINGW builds ovewrite it. Cache saves 10+ minutes on the build.
Diffstat (limited to 'test/helpers.lua')
-rw-r--r--test/helpers.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/helpers.lua b/test/helpers.lua
index e4c3019adc..795808005d 100644
--- a/test/helpers.lua
+++ b/test/helpers.lua
@@ -235,6 +235,11 @@ local function hasenv(name)
return nil
end
+local function deps_prefix()
+ local env = os.getenv('DEPS_PREFIX')
+ return (env and env ~= '') and env or '.deps/usr'
+end
+
local tests_skipped = 0
local function check_cores(app, force)
@@ -263,7 +268,7 @@ local function check_cores(app, force)
else
initial_path = '.'
re = '/core[^/]*$'
- exc_re = { '^/%.deps$', local_tmpdir, '^/%node_modules$' }
+ exc_re = { '^/%.deps$', '^/%'..deps_prefix()..'$', local_tmpdir, '^/%node_modules$' }
db_cmd = gdb_db_cmd
random_skip = true
end