diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2019-08-05 10:17:37 +0200 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-08-05 10:17:37 +0200 | 
| commit | 51440204e7973672f906db8e53035cfd228ce444 (patch) | |
| tree | 6c69695a8822cb42c4d5f1ff1cf23b440d9455ff /test/helpers.lua | |
| parent | 6871445dfe80939df81517870f0b29a2b40dd9d9 (diff) | |
| parent | d4a0b6c4e1d78f19bf5879b113c5252d5a4f2e5c (diff) | |
| download | rneovim-51440204e7973672f906db8e53035cfd228ce444.tar.gz rneovim-51440204e7973672f906db8e53035cfd228ce444.tar.bz2 rneovim-51440204e7973672f906db8e53035cfd228ce444.zip | |
Merge #10695 from justinmk/test-fixes
test: various fixes
Diffstat (limited to 'test/helpers.lua')
| -rw-r--r-- | test/helpers.lua | 12 | 
1 files changed, 7 insertions, 5 deletions
| diff --git a/test/helpers.lua b/test/helpers.lua index 5739b42fe6..e14bcff2c8 100644 --- a/test/helpers.lua +++ b/test/helpers.lua @@ -674,11 +674,13 @@ function module.write_file(name, text, no_dedent, append)    file:close()  end -function module.isCI() -  local is_travis = nil ~= os.getenv('TRAVIS') -  local is_appveyor = nil ~= os.getenv('APPVEYOR') -  local is_quickbuild = nil ~= lfs.attributes('/usr/home/quickbuild') -  return is_travis or is_appveyor or is_quickbuild +function module.isCI(name) +  local any = (name == nil) +  assert(any or name == 'appveyor' or name == 'quickbuild' or name == 'travis') +  local av = ((any or name == 'appveyor') and nil ~= os.getenv('APPVEYOR')) +  local tr = ((any or name == 'travis') and nil ~= os.getenv('TRAVIS')) +  local qb = ((any or name == 'quickbuild') and nil ~= lfs.attributes('/usr/home/quickbuild')) +  return tr or av or qb  end  -- Gets the contents of $NVIM_LOG_FILE for printing to the build log. | 
