-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
37 lines (34 loc) · 876 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
# Define the stages.
stages:
# Create a static code analysis stage.
- analyze
analysis:ec:
# Add to the analysis stage.
stage: analyze
# Use the latest ec Docker image.
image: mstruebing/editorconfig-checker:latest
script:
# Check that all text complies with the EditorConfig file.
- ec
analysis:shfmt:
# Add to the analysis stage.
stage: analyze
# Use the latest Alpine Linux shfmt Docker image.
image: mvdan/shfmt:latest-alpine
rules:
- changes:
- bin/*.sh
script:
# Check that all Bash code has proper formatting.
- shfmt -d bin
analysis:shellcheck:
# Add to the analysis stage.
stage: analyze
# Use the latest stable shellchecl Docker image.
image: koalaman/shellcheck-alpine:stable
rules:
- changes:
- bin/*.sh
script:
# Check that all Bash code is proper.
- shellcheck -x bin/*.sh