mirror of
https://github.com/vim-airline/vim-airline-themes.git
synced 2026-08-17 21:28:06 +08:00
[add] vim-themis's test
This commit is contained in:
@@ -11,7 +11,6 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
vim:
|
vim:
|
||||||
- v8.2.2000
|
|
||||||
- v8.2.1000
|
- v8.2.1000
|
||||||
- v8.2.0000
|
- v8.2.0000
|
||||||
- v8.1.0000
|
- v8.1.0000
|
||||||
@@ -20,25 +19,16 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@main
|
uses: actions/checkout@main
|
||||||
|
with:
|
||||||
|
repository: thinca/vim-themis
|
||||||
|
path: vim-themis
|
||||||
|
|
||||||
- name: Setup Vim
|
- name: Setup Vim
|
||||||
uses: rhysd/action-setup-vim@v1
|
uses: rhysd/action-setup-vim@v1
|
||||||
with:
|
with:
|
||||||
version: ${{ matrix.vim }}
|
version: ${{ matrix.vim }}
|
||||||
|
|
||||||
- name: Install Dependencies
|
|
||||||
run: |
|
|
||||||
git clone https://github.com/junegunn/vader.vim.git
|
|
||||||
git clone https://github.com/vim-airline/vim-airline
|
|
||||||
find $PWD/autoload/airline/themes -name "*.vim" > themes.txt
|
|
||||||
- name: Run Test
|
- name: Run Test
|
||||||
run: |
|
env:
|
||||||
vim --not-a-term -Nu <(cat << VIMRC
|
THEMIS_VIM: ${{ steps.vim.outputs.executable }}
|
||||||
filetype off
|
run: ./vim-themis/bin/themis --reporter spec
|
||||||
set rtp+=vader.vim
|
|
||||||
set rtp+=vim-airline
|
|
||||||
set rtp+=.
|
|
||||||
set rtp+=after
|
|
||||||
filetype plugin indent on
|
|
||||||
syntax enable
|
|
||||||
VIMRC) -c 'Vader! test/*' > /dev/null
|
|
||||||
|
|||||||
@@ -0,0 +1,2 @@
|
|||||||
|
let s:deps = themis#helper('deps')
|
||||||
|
call s:deps.git('vim-airline/vim-airline')
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
scriptencoding utf-8
|
||||||
|
|
||||||
|
let s:themes_dir = expand('<sfile>:h:h') . '/autoload/airline/themes'
|
||||||
|
let s:themes = map(glob(s:themes_dir . '/*.vim', 1, 1), 'fnamemodify(v:val, ":t:r")')
|
||||||
|
let s:suite = themis#suite('vim-airline-themes')
|
||||||
|
|
||||||
|
call themis#helper('command')
|
||||||
|
|
||||||
|
function! s:Test(theme)
|
||||||
|
Throws execute('AirlineTheme ' . a:theme)
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! s:suite.__themes__()
|
||||||
|
let child = themis#suite('ExistThemes')
|
||||||
|
for theme in s:themes
|
||||||
|
let child[theme] = funcref('s:Test', [theme])
|
||||||
|
endfor
|
||||||
|
endfunction
|
||||||
Reference in New Issue
Block a user