Skip to content

Commit 99efe11

Browse files
authored
Fix goodbye travis-ci and hello GitHub action CI (#108)
* Fix goodbye travis-ci and hello GitHub action CI
1 parent 9d954fc commit 99efe11

File tree

4 files changed

+81
-43
lines changed

4 files changed

+81
-43
lines changed

.github/workflows/linux_neovim.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: build
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
strategy:
8+
fail-fast: false
9+
matrix:
10+
os: [ubuntu-latest]
11+
name: [neovim-v04-x64]
12+
include:
13+
- name: neovim-v04-x64
14+
os: ubuntu-latest
15+
neovim_version: v0.4.3
16+
runs-on: ${{matrix.os}}
17+
steps:
18+
- uses: actions/checkout@v2
19+
- uses: actions/setup-python@v2
20+
with:
21+
python-version: '3.x'
22+
- name: Download vim
23+
shell: bash
24+
run: |
25+
mkdir -p ~/nvim/bin
26+
curl -L https://github.com/neovim/neovim/releases/download/${{matrix.neovim_version}}/nvim.appimage -o ~/nvim/bin/nvim
27+
chmod u+x ~/nvim/bin/nvim
28+
- name: Download test runner
29+
shell: bash
30+
run: |
31+
git clone --depth 1 --single-branch https://github.com/junegunn/vader.vim.git ./tests/vader.vim
32+
make install
33+
34+
- name: Run tests
35+
shell: bash
36+
run: |
37+
export PATH=~/nvim/bin:$PATH
38+
cd ./tests
39+
nvim -u vimrc -c 'Vader! *.vader'

.github/workflows/linux_vim.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: build
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
strategy:
8+
fail-fast: false
9+
matrix:
10+
os: [ubuntu-latest]
11+
name: [vim-v82-x64]
12+
include:
13+
- name: vim-v82-x64
14+
os: ubuntu-latest
15+
vim_version: 8.2.0037
16+
glibc_version: 2.15
17+
runs-on: ${{matrix.os}}
18+
steps:
19+
- uses: actions/checkout@v2
20+
- uses: actions/setup-python@v2
21+
with:
22+
python-version: '3.x'
23+
- name: Download vim
24+
shell: bash
25+
run: |
26+
mkdir -p ~/vim/bin
27+
curl -L https://github.com/vim/vim-appimage/releases/download/v${{matrix.vim_version}}/GVim-v${{matrix.vim_version}}.glibc${{matrix.glibc_version}}-x86_64.AppImage -o ~/vim/bin/vim
28+
chmod u+x ~/vim/bin/vim
29+
- name: Download test runner
30+
shell: bash
31+
run: |
32+
git clone --depth 1 --single-branch https://github.com/junegunn/vader.vim.git ./tests/vader.vim
33+
make install
34+
35+
- name: Run tests
36+
shell: bash
37+
run: |
38+
export PATH=~/vim/bin:$PATH
39+
cd ./tests
40+
vim -u vimrc -c 'Vader! *.vader'

.travis.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
vim-pydocstring
22
===============
33

4-
.. image:: https://travis-ci.org/heavenshell/vim-pydocstring.svg?branch=master
5-
:target: https://travis-ci.org/heavenshell/vim-pydocstring
4+
.. image:: https://github.com/heavenshell/vim-pydocstring/workflows/build/badge.svg?branch=master
5+
:target: https://github.com/heavenshell/vim-pydocstring
66

77
.. image:: ./assets/vim-pydocstring.gif
88

0 commit comments

Comments
 (0)