Skip to content

Commit aae884a

Browse files
committed
test install script (with travis ci)
1 parent 635fb71 commit aae884a

File tree

5 files changed

+30
-1
lines changed

5 files changed

+30
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
Gemfile.lock
12
vim/bundle
23
vim/doc
34
vim/.netrwhist

Gemfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
source :rubyforge
2+
3+
gem 'rake'

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,9 @@ And now you're ready to go!
2323

2424
## Customization
2525

26-
You can add your own configurations in ~/.vimrc.local to customize the config to your needs.
26+
You can add your own configurations in ~/.vimrc.local to customize the config to your needs.
27+
28+
## Travis Build Status
29+
30+
[![Build
31+
Status](https://secure.travis-ci.org/SweeD/swvim.png)](http://travis-ci.org/SweeD/swvim)

Rakefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
task :default => [:test]
2+
3+
task :test do
4+
ruby "test/install_test.rb"
5+
end

test/install_test.rb

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
require 'test/unit'
2+
3+
class InstallScriptTest < Test::Unit::TestCase
4+
def test_install
5+
symlink_vim = ENV['HOME'] + "/.vim"
6+
symlink_vimrc = ENV['HOME'] + "/.vimrc"
7+
assert !File.exist?(symlink_vim)
8+
assert !File.exist?(symlink_vimrc)
9+
10+
assert system("./install.sh")
11+
12+
assert File.symlink?(symlink_vim)
13+
assert File.symlink?(symlink_vimrc)
14+
end
15+
end

0 commit comments

Comments
 (0)