summaryrefslogtreecommitdiffstats
path: root/jjb/oom
diff options
context:
space:
mode:
authorguillaume.lambert <guillaume.lambert@orange.com>2021-10-14 09:45:34 +0200
committerguillaume.lambert <guillaume.lambert@orange.com>2021-10-15 09:48:00 +0200
commit820f2cfe32f6f2008cd6f7e3845617e25458f222 (patch)
tree885ab59fe8189636dd5037bd5cf3a447c35d1d5c /jjb/oom
parent3096aed7d9e203fd493e279e646c62f6df3eb35f (diff)
[OOM] add bashism and pre-commit linting
- add linter in order to detect bashisms - add pre-commit linters for trailing blanks,tabs,etc - exclude them for honolulu and frankfurt and guilin branches since they are not intended for former active branches https://gerrit.onap.org/r/c/oom/+/120407 Issue-ID: OOM-2643 Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com> Change-Id: I2f8832725f7b9851dca4907f442145ec1aaab872
Diffstat (limited to 'jjb/oom')
-rw-r--r--jjb/oom/oom-main-linter.yaml21
1 files changed, 21 insertions, 0 deletions
diff --git a/jjb/oom/oom-main-linter.yaml b/jjb/oom/oom-main-linter.yaml
index d9887e472..a258a9efe 100644
--- a/jjb/oom/oom-main-linter.yaml
+++ b/jjb/oom/oom-main-linter.yaml
@@ -19,6 +19,14 @@
tox-envs: "docs,docs-linkcheck"
pattern: "docs/**"
parallel: true
+ - "checkbashisms":
+ tox-dir: "."
+ tox-envs: "checkbashisms"
+ pattern: "**"
+ - "pre-commit":
+ tox-dir: "."
+ tox-envs: "pre-commit"
+ pattern: "**"
stream:
- "master":
branch: "master"
@@ -28,3 +36,16 @@
branch: "frankfurt"
- "guilin":
branch: "guilin"
+ exclude:
+ - stream: "honolulu"
+ subproject: "checkbashisms"
+ - stream: "frankfurt"
+ subproject: "checkbashisms"
+ - stream: "guilin"
+ subproject: "checkbashisms"
+ - stream: "honolulu"
+ subproject: "pre-commit"
+ - stream: "frankfurt"
+ subproject: "pre-commit"
+ - stream: "guilin"
+ subproject: "pre-commit"