diff options
-rw-r--r-- | .gitlab-ci.yml | 29 | ||||
-rw-r--r-- | rparse.py | 9 |
2 files changed, 38 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..ee5b8fb --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,29 @@ +stages: + - test + +pyflakes2: + stage: test + script: + - apt-get update + - apt-get -y -qq install python2.7 pyflakes + - mkdir debug + - cp game/*.rpy debug/ + - cp game/*/*.rpy debug/ + - python rparse.py + - pyflakes debug/ + image: debian:buster + allow_failure: true + +sast: + stage: test +include: +- template: Security/SAST.gitlab-ci.yml + +semgrep-sast: + dependencies: + - pyflakes2 + +bandit-sast: + dependencies: + - pyflakes2 + diff --git a/rparse.py b/rparse.py new file mode 100644 index 0000000..2df997e --- /dev/null +++ b/rparse.py @@ -0,0 +1,9 @@ +import os, subprocess + +def fm(f): + return os.getcwd()+"/"+f + +for f in os.listdir(os.getcwd()): + subprocess.run("mv %s %s" % (fm(f), fm(f.replace(".rpy", ".py"))), shell=True) + +subprocess.run("ls %s" % os.getcwd(), shell=True) |