From 7d539b52193d05d7a538bcdc08f48a11b68b8cf7 Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Mon, 26 Dec 2016 21:20:45 +0800 Subject: [PATCH] Add travis support --- .travis.yml | 36 ++++++++++++++++++++++++++++++++++++ README.md | 2 ++ 2 files changed, 38 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..2abc0c19b --- /dev/null +++ b/.travis.yml @@ -0,0 +1,36 @@ +language: python + +cache: + pip: true + +env: + matrix: + - LINT=vimlint-errors + - LINT=vimlint + - LINT=vint-errors + - LINT=vint + +matrix: + allow_failures: + - env: LINT=vimlint + - env: LINT=vint + +install: + - | + if [ "${LINT#vimlint}" != "$LINT" ]; then + git clone --depth=1 https://github.com/syngan/vim-vimlint /tmp/vimlint + git clone --depth=1 https://github.com/ynkdir/vim-vimlparser /tmp/vimlparser + elif [ "${LINT#vint}" != "$LINT" ]; then + virtualenv /tmp/vint && source /tmp/vint/bin/activate && pip install vim-vint + fi +script: + - | + if [ "$LINT" = "vimlint" ]; then + sh /tmp/vimlint/bin/vimlint.sh -l /tmp/vimlint -p /tmp/vimlparser . + elif [ "$LINT" = "vimlint-errors" ]; then + sh /tmp/vimlint/bin/vimlint.sh -E -l /tmp/vimlint -p /tmp/vimlparser . + elif [ "$LINT" = "vint" ]; then + vint . + elif [ "$LINT" = "vint-errors" ]; then + vint --error . + fi diff --git a/README.md b/README.md index 51f2b3c12..87ab1e778 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # SpaceVim Like spacemacs, but for vim. +[![Build Status](https://travis-ci.org/SpaceVim/SpaceVim.svg?branch=master)](https://travis-ci.org/SpaceVim/SpaceVim) | +[![Build Status](https://travis-ci.org/SpaceVim/SpaceVim.svg?branch=dev)](https://travis-ci.org/SpaceVim/SpaceVim)