2022-09-15 11:42:49 +00:00
|
|
|
variables:
|
2022-11-01 19:54:06 +00:00
|
|
|
- &vlang_image 'git.rustybever.be/chewing_bever/vlang:0.3.2'
|
2022-09-15 11:42:49 +00:00
|
|
|
|
2022-01-13 14:29:43 +00:00
|
|
|
# These checks already get performed on the feature branches
|
|
|
|
branches:
|
2022-05-05 07:35:19 +00:00
|
|
|
exclude: [ main ]
|
|
|
|
platform: 'linux/amd64'
|
2022-01-13 14:29:43 +00:00
|
|
|
|
2022-01-13 12:40:33 +00:00
|
|
|
pipeline:
|
2022-11-02 17:25:49 +00:00
|
|
|
# vfmt seems to get confused if these aren't present
|
|
|
|
install-modules:
|
|
|
|
image: *vlang_image
|
|
|
|
pull: true
|
|
|
|
commands:
|
|
|
|
- export VMODULES=$PWD/.vmodules
|
|
|
|
- 'cd src && v install'
|
|
|
|
when:
|
|
|
|
event: [pull_request]
|
|
|
|
|
2022-01-13 12:40:33 +00:00
|
|
|
lint:
|
2022-09-15 11:42:49 +00:00
|
|
|
image: *vlang_image
|
2022-01-22 21:12:30 +00:00
|
|
|
pull: true
|
2022-01-13 12:40:33 +00:00
|
|
|
commands:
|
2022-11-02 17:25:49 +00:00
|
|
|
- export VMODULES=$PWD/.vmodules
|
2022-01-13 13:33:06 +00:00
|
|
|
- make lint
|
2022-05-05 07:35:19 +00:00
|
|
|
when:
|
2022-11-02 17:25:49 +00:00
|
|
|
event: [pull_request]
|