Bläddra i källkod

Merge branch 'testing'

Marco Hinz 11 år sedan
förälder
incheckning
9ac85f9871
4 ändrade filer med 19 tillägg och 18 borttagningar
  1. 0 15
      .gitignore
  2. 8 1
      .travis.yml
  3. 10 1
      test/run
  4. 1 1
      test/tests.vader

+ 0 - 15
.gitignore

@@ -1,15 +0,0 @@
-*
-
-!.gitignore
-!.travis.yml
-!CONTRIBUTING.md
-!LICENSE
-!README.md
-!autoload/startify.vim
-!doc/startify.txt
-!plugin/startify.vim
-!startify.png
-!syntax/startify.vim
-!test/run
-!test/tests.vader
-!test/vimrc

+ 8 - 1
.travis.yml

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

+ 10 - 1
test/run

@@ -1,3 +1,12 @@
 #!/usr/bin/env bash
 
-vim -XNu vimrc -c 'Vader! *' >/dev/null
+vader="${HOME}/.vim/*bundle*/vader.vim"
+
+if [ -d $vader ]; then
+    [[ ! -L vader.vim ]] && ln -s $vader
+else
+    git clone https://github.com/junegunn/vader.vim.git
+fi
+
+echo '(Be patient.. testing can take a while.)'
+vim -XNu vimrc -i NONE -c 'Vader! *' >/dev/null

+ 1 - 1
test/tests.vader

@@ -24,7 +24,7 @@ Expect (only "bar"):
 
 Given:
   quux
-Do (quit Startify buffer via 'q'):
+Do (quit startify buffer via 'q'):
   q
 Expect:
   quux