Skip to content

Fix travis settings #90

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Apr 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 31 additions & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,41 @@
dist: bionic
sudo: false
group: travis_latest
language: vim

install:
- pwd
cache:
apt: true
ccache: true

before_install:
- git clone https://github.com/junegunn/vader.vim.git tests/vader.vim
- git clone https://github.com/vim/vim /tmp/vim
- mkdir ~/tmp
- cd /tmp/vim
- sudo apt-get install -y gettext libncurses5-dev libacl1-dev libgpm-dev
- ./configure --with-features=huge --enable-fail-if-missing --enable-pythoninterp --prefix=$HOME/tmp/vim --disable-gui
- make && make install
- git clone https://github.com/junegunn/vader.vim.git
- export VIM_EXE=$HOME/tmp/vim/bin/vim
- sudo apt-get install python3
- sudo apt-get install python3-dev
- sudo apt-get install python3-venv

before_script:
- cd $HOME/build/heavenshell/vim-pydocstring
- make install
- cd $HOME/build/heavenshell/vim-pydocstring/tests

before_script:
- $HOME/tmp/vim/bin/vim --version
jobs:
include:
- env: ENV="Vim8"
install:
- git clone https://github.com/vim/vim /tmp/vim
- mkdir ~/tmp
- cd /tmp/vim
- sudo apt-get install -y gettext libncurses5-dev libacl1-dev libgpm-dev
- ./configure --with-features=huge --enable-fail-if-missing --enable-pythoninterp --prefix=$HOME/tmp/vim --disable-gui
- make && make install

script:
- VIM_EXE=$HOME/tmp/vim/bin/vim ./run.sh

- env: ENV="Neovim"
install:
- mkdir -p ~/tmp/nvim/bin
- curl -L https://github.com/neovim/neovim/releases/download/v0.4.3/nvim.appimage -o ~/tmp/nvim/bin/nvim
- chmod u+x ~/tmp/nvim/bin/nvim

script:
- cd tests
- ./run.sh
script:
- VIM_EXE=$HOME/tmp/nvim/bin/nvim ./run.sh
4 changes: 2 additions & 2 deletions tests/format.vader
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# vim:set et sw=4 ts=4 tw=79:

Execute (Setup template dir):
Execute (Setup template formatter):
Save g:pydocstring_formatter
let g:pydocstring_formatter = 'sphinx'

Expand All @@ -18,7 +18,7 @@ Given python (Format all):

Execute:
:PydocstringFormat
:sleep 500m
:sleep 1

Expect python:
class Foo:
Expand Down
2 changes: 1 addition & 1 deletion tests/google.vader
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# vim:set et sw=4 ts=4 tw=79:

Execute (Setup template dir):
Execute (Setup template formatter):
Save g:pydocstring_formatter
let g:pydocstring_formatter = 'google'

Expand Down
2 changes: 1 addition & 1 deletion tests/numpy.vader
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# vim:set et sw=4 ts=4 tw=79:

Execute (Setup template dir):
Execute (Setup template formatter):
Save g:pydocstring_formatter
let g:pydocstring_formatter = 'numpy'

Expand Down
2 changes: 1 addition & 1 deletion tests/sphinx.vader
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# vim:set et sw=4 ts=4 tw=79:

Execute (Setup template dir):
Execute (Setup template formatter):
Save g:pydocstring_formatter
let g:pydocstring_formatter = 'sphinx'

Expand Down
5 changes: 4 additions & 1 deletion tests/template.vader
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
# vim:set et sw=4 ts=4 tw=79:

Execute (Setup template dir):
Execute (Setup template path):
Save g:pydocstring_templates_path
let g:pydocstring_templates_path = './templates'

Save g:pydocstring_formatter
let g:pydocstring_formatter = 'sphinx'

Given python (def foo):
def foo():
pass
Expand Down