mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-11 21:13:50 -05:00
FIx CI build freezing (#398)
* Kill vim server * Fix incorrect usage of rspec * Add build stage to CI * Try using new server for each run * Sort and uniq test files
This commit is contained in:
committed by
Adam Stankiewicz
parent
9fd5c11a20
commit
e8245dbf17
@@ -7,6 +7,5 @@ addons:
|
|||||||
packages:
|
packages:
|
||||||
- vim-gtk
|
- vim-gtk
|
||||||
before_script:
|
before_script:
|
||||||
- "export DISPLAY=:99.0"
|
- "./build"
|
||||||
- "sh -e /etc/init.d/xvfb start"
|
script: xvfb-run bundle exec rspec --format=documentation
|
||||||
script: bundle exec rspec --format=documentation
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ describe "My Vim plugin" do
|
|||||||
|
|
||||||
extensions = extensions.split(/[\n,]/)
|
extensions = extensions.split(/[\n,]/)
|
||||||
|
|
||||||
extensions.each do |ext|
|
extensions.sort!.uniq!.each do |ext|
|
||||||
if ext.match?(/^[a-z\.]+$/i)
|
if ext.match?(/^[a-z\.]+$/i)
|
||||||
it "should parse #{ext} file" do
|
it "should parse #{ext} file" do
|
||||||
Timeout::timeout(20) do
|
Timeout::timeout(20) do
|
||||||
@@ -21,4 +21,8 @@ describe "My Vim plugin" do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
after(:all) do
|
||||||
|
vim.kill
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ require 'vimrunner/rspec'
|
|||||||
$plugin_path = File.expand_path('../..', __FILE__)
|
$plugin_path = File.expand_path('../..', __FILE__)
|
||||||
|
|
||||||
Vimrunner::RSpec.configure do |config|
|
Vimrunner::RSpec.configure do |config|
|
||||||
config.reuse_server = true
|
config.reuse_server = false
|
||||||
|
|
||||||
# Decide how to start a Vim instance. In this block, an instance should be
|
# Decide how to start a Vim instance. In this block, an instance should be
|
||||||
# spawned and set up with anything project-specific.
|
# spawned and set up with anything project-specific.
|
||||||
|
|||||||
Reference in New Issue
Block a user