summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: ad066f523275e3917dda345e6a1273557f33a75d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# https://travis-ci.org/ryanss/vim-hackernews

language: vim

env:
    - PYVERSION=2
    - PYVERSION=3

install:
    - sudo pip install flake8

before_script:
    - flake8 ftplugin/hackernews.py
    - if [ $PYVERSION = 3 ]; then
        sudo apt-get install python3-dev;
        hg clone https://code.google.com/p/vim/;
        cd vim;
        ./configure --enable-python3interp;
        make;
        sudo make install;
        sudo cp /usr/local/bin/vim /usr/bin/vim;
        cd -;
      fi
    - git clone https://github.com/junegunn/vader.vim.git

script: |
  vim -Nu <(cat << VIMRC
  filetype off
  set rtp+=vader.vim
  set rtp+=.
  filetype plugin indent on
  syntax enable
  VIMRC) -c 'Vader! tests.vader' > /dev/null