diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-08-30 12:53:44 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-08-30 12:53:44 -0300 |
commit | 8fcd9c245defd0ee1b235e3fc4f93c1ab40d2efb (patch) | |
tree | 4788cae50ac55611b11276f461ff4b33d9338afd | |
parent | e4e6f2c4d07cb2d6d68f268a997e6a2155633266 (diff) | |
download | renpy-8fcd9c245defd0ee1b235e3fc4f93c1ab40d2efb.tar.gz renpy-8fcd9c245defd0ee1b235e3fc4f93c1ab40d2efb.tar.bz2 renpy-8fcd9c245defd0ee1b235e3fc4f93c1ab40d2efb.tar.xz renpy-8fcd9c245defd0ee1b235e3fc4f93c1ab40d2efb.zip |
Add some CI toys, which aren't good because, well, this is Ren'Py.
-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) |