-
Notifications
You must be signed in to change notification settings - Fork 70
/
Copy path.gitlab-ci.yml
105 lines (97 loc) · 2.15 KB
/
.gitlab-ci.yml
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
---
stages:
- test
- gen_coverage
- deploy
.setup:
before_script:
- apk update
- apk add curl git bash make
- apk add build-base neovim python3
- curl -sSL https://bootstrap.pypa.io/pip/3.6/get-pip.py | python3
- git clone --depth=1 https://github.com/junegunn/vader.vim.git ./test/vader/vader.vim
test-latest:
stage: test
extends: .setup
image:
name: thinca/vim:latest-full
entrypoint: [""]
variables:
MYVIM: vim -T dumb --not-a-term -n
script: cd ./test/new && make -j1
artifacts:
paths:
- ./test/new/cov.tmp/
test-8.0.1575:
stage: test
extends: .setup
image:
name: thinca/vim:v8.0.1575-full
entrypoint: [""]
variables:
MYVIM: vim -T dumb --not-a-term -n
script: cd ./test/new && make -j1
artifacts:
paths:
- ./test/new/cov.tmp/
test-7.4.2273:
stage: test
extends: .setup
image:
name: thinca/vim:v7.4.2273-full
entrypoint: [""]
variables:
MYVIM: vim -T dumb --not-a-term -n
script: cd ./test/new && make -j1
artifacts:
paths:
- ./test/new/cov.tmp/
test-neovim:
stage: test
extends: .setup
image: alpine:latest
script: cd ./test/new && make -j1
artifacts:
paths:
- ./test/new/cov.tmp/
test-neovim-treesitter:
stage: test
extends: .setup
image: alpine:edge
variables:
TESTS_ENABLE_TREESITTER: 1
script:
- git clone --depth=1 https://github.com/nvim-treesitter/nvim-treesitter.git test/vader/plugged/nvim-treesitter
- cd ./test/new
- nvim --headless -Nu common/bootstrap.vim -c 'TSInstallSync! python' -c 'TSInstallSync! ruby' -c 'q'
- make -j1
artifacts:
paths:
- ./test/new/cov.tmp/
coverage:
stage: gen_coverage
extends: .setup
image: alpine:latest
script: cd ./test/new && make -j1 coverage
artifacts:
reports:
coverage_report:
coverage_format: cobertura
path: ./test/new/coverage.xml
paths:
- ./test/new/htmlcov
pages:
stage: deploy
image: ruby:2.3
script:
- mkdir public
- mv ./test/new/htmlcov public/
artifacts:
paths:
- public
expire_in: 30 days
dependencies:
- coverage
only:
- master
- dev-test-ts-split