Bladeren bron

README: add Travis CI badge

Marco Hinz 11 jaren geleden
bovenliggende
commit
61619ba211
6 gewijzigde bestanden met toevoegingen van 22 en 20 verwijderingen
  1. 1 0
      .gitignore
  2. 1 8
      .travis.yml
  3. 2 0
      README.adoc
  4. 1 8
      test/run
  5. 11 4
      test/tests.vader
  6. 6 0
      test/vimrc

+ 1 - 0
.gitignore

@@ -12,3 +12,4 @@
 !syntax/startify.vim
 !test/run
 !test/tests.vader
+!test/vimrc

+ 1 - 8
.travis.yml

@@ -4,11 +4,4 @@ before_script: |
   git clone https://github.com/junegunn/vader.vim.git
 
 script: |
-  vim --nofork -XNu <(cat << EOF
-  filetype off
-  set runtimepath+=vader.vim
-  set runtimepath+=.
-  filetype plugin on
-  syntax enable
-  set hidden
-  EOF) -c 'Vader! test/*' >/dev/null
+  vim -Nu test/vimrc -c 'Vader! test/*' >/dev/null

+ 2 - 0
README.adoc

@@ -1,3 +1,5 @@
+image:https://travis-ci.org/mhinz/vim-startify.svg?branch=travis["Build Status", link="https://travis-ci.org/mhinz/vim-startify"]
+
 image:https://github.com/mhinz/vim-startify/raw/master/startify.png[Startify in action!]
 
 That's it. A fancy start screen for Vim.  _(almost all visible features enabled - freely customizable)_

+ 1 - 8
test/run

@@ -1,10 +1,3 @@
 #!/usr/bin/env bash
 
-vim --nofork -XNu <(cat << EOF
-filetype off
-set runtimepath+=~/.vim/bundle/vader.vim
-set runtimepath+=..
-filetype plugin on
-syntax enable
-set hidden
-EOF) +Vader*
+vim -XNu vimrc -c 'Vader! *' >/dev/null

+ 11 - 4
test/tests.vader

@@ -1,7 +1,7 @@
-Before (Check :Startify):
+Before (check :Startify):
   Startify
 
-Execute (Check options):
+Execute (check options):
   AssertEqual 'startify', &filetype
   AssertEqual 'wipe',     &bufhidden
   AssertEqual 'nofile',   &buftype
@@ -12,12 +12,19 @@ Execute (Check options):
   AssertEqual 0,          &number
   AssertEqual 0,          &swapfile
 
-Do (open new buffer in insert mode with 'i'):
+Do (open new buffer in insert mode via 'i'):
   ifoo
 Expect (only "foo"):
   foo
 
-Do (open new buffer in normal mode with 'e'):
+Do (open new buffer in normal mode via 'e'):
   eibar
 Expect (only "bar"):
   bar
+
+Given:
+  quux
+Do (quit Startify buffer via 'q'):
+  q
+Expect:
+  quux

+ 6 - 0
test/vimrc

@@ -0,0 +1,6 @@
+filetype off
+set runtimepath+=vader.vim
+set runtimepath+=.
+filetype plugin on
+syntax enable
+set hidden