-
Notifications
You must be signed in to change notification settings - Fork 5
/
.gitlab-ci.yml
41 lines (33 loc) · 1006 Bytes
/
.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
#https://confluence.esss.lu.se/display/CSI/Software+Quality
include:
- remote: 'https://gitlab.esss.lu.se/ics-infrastructure/gitlab-ci-yml/raw/master/PreCommit.gitlab-ci.yml'
stages:
- check
default:
tags:
- docker
image: registry.esss.lu.se/ics-docker/centos-e3:latest
### stage: check
pre-commit:
stage: check
image: registry.esss.lu.se/ics-docker/pre-commit:latest
script:
- pre-commit run --all-files
shellcheck:
image: pipelinecomponents/shellcheck:latest
stage: check
before_script:
- shellcheck --version
script:
# anything ending on .*sh under test/ should be shell script
# exclude checkws.sh
# Note: We can not use `git ls-files` because the image does not have it
- ./checkshellcheck.sh
- ./check-test-methods-sorted.sh
shfmt:
image: mvdan/shfmt:v3.8.0-alpine
stage: check
before_script:
- shfmt -version
script:
- shfmt -i 2 -ci -d . # 2 spaces indent, indent switch-case statements, show diff (don't apply change)