Sha256: 95df378b762e174bb782cc1b13a85e2ebe3613fa674c7a4b572303c6e92530c9

Contents?: true

Size: 910 Bytes

Versions: 1

Compression:

Stored size: 910 Bytes

Contents

#!/usr/bin/env ruby

require "fileutils"

ENV.delete("VIM")
ENV.delete("VIMRUNTIME")

root = File.expand_path("..", __dir__)
acceptance_root = File.join(root, "spec/acceptance")
themis_rtp = File.join(acceptance_root, "runtime")
themis_home = File.join(themis_rtp, "pack/flavors/start/thinca_vim-themis")
manifest = File.join(themis_rtp, "rplugin_manifest.vim")
vimrc = File.join(themis_rtp, "init.vim")
nvim = ENV.fetch("NVIM_EXECUTABLE", "nvim")

themis_exe = Gem.win_platform? ?
  File.join(themis_home, "bin/themis.bat") :
  File.join(themis_home, "bin/themis")

env = {
  "NVIM_RPLUGIN_MANIFEST" => manifest,
  "THEMIS_VIM" => nvim,
  "THEMIS_HOME" => themis_home,
  "THEMIS_ARGS" => "-e --headless -u #{vimrc}"
}

FileUtils.rm_f(manifest)

Dir.chdir(root) do
  system(
    env,
    nvim,
    "-e", "--headless",
    "-u", vimrc,
    "+UpdateRemotePlugins", "+qa!"
  )

  exec(env, themis_exe, *ARGV)
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
neovim-0.10.0 script/run_acceptance.rb