Compare commits

..

4 commits

17 changed files with 8 additions and 114 deletions

View file

@ -1 +0,0 @@
*

View file

@ -1,9 +0,0 @@
FROM python:3.12-slim
RUN apt update && apt install -y ffmpeg && pip install invoke
VOLUME ["/data"]
WORKDIR /data
CMD /usr/local/bin/invoke probe

BIN
assets/All_I_Want_-_Grimoff.ogg (Stored with Git LFS)

Binary file not shown.

BIN
assets/Angel_-_Grimoff.ogg (Stored with Git LFS)

Binary file not shown.

BIN
assets/Go_And_Die_-_Grimoff.ogg (Stored with Git LFS)

Binary file not shown.

BIN
assets/Heavens_Bells_-_Grimoff.ogg (Stored with Git LFS)

Binary file not shown.

BIN
assets/If_You_Want_To_Die_-_Grimoff.ogg (Stored with Git LFS)

Binary file not shown.

BIN
assets/Last_Day_-_Grimoff.ogg (Stored with Git LFS)

Binary file not shown.

BIN
assets/Liar_-_Grimoff.ogg (Stored with Git LFS)

Binary file not shown.

BIN
assets/Loss_-_Grimoff.ogg (Stored with Git LFS)

Binary file not shown.

BIN
assets/Memories_-_Concrete_Foundation.ogg (Stored with Git LFS)

Binary file not shown.

BIN
assets/Metal_Attack_-_Grimoff.ogg (Stored with Git LFS)

Binary file not shown.

BIN
assets/Twisted_Games_-_Grimoff.ogg (Stored with Git LFS)

Binary file not shown.

View file

@ -1,28 +0,0 @@
#!/usr/bin/env python
from os import getenv
from os.path import dirname
from re import match
from shlex import quote
from subprocess import run
commit_before_sha = getenv("CI_COMMIT_BEFORE_SHA")
commit_sha = getenv("CI_COMMIT_SHA")
commit_ref_name = getenv("CI_COMMIT_REF_NAME")
directories = set()
cmd = "git clone https://code.ryuslash.org/ryuslash/git-lfs-test.git ."
print(cmd)
run(cmd, shell=True)
if not match(r"^0+$", commit_before_sha):
cmd = f"git diff --name-only {quote(commit_before_sha)} {quote(commit_sha)}"
print(cmd)
process = run(cmd, shell=True, capture_output=True)
process_output = process.stdout.decode()
print(process_output)
for filename in process_output.strip().split("\n"):
directories.add(dirname(filename))
unix_directory_list = str.join(":", directories)
print(f"python tasks.py probe --directories={quote(unix_directory_list)}")

View file

@ -1,23 +1,9 @@
#!/usr/bin/env python #!/usr/bin/env bash
from shlex import quote while read precommit postcommit refname
from subprocess import run do
import os echo "precommit: ${precommit}; postcommit: ${postcommit}; refname: ${refname}"
import sys if [[ "${precommit}" != "0000000000000000000000000000000000000000" ]]; then
git diff --name-status $precommit $postcommit
for line in sys.stdin: fi
precommit, postcommit, refname = line.strip().split(' ') done
if not refname == "refs/heads/main":
print(f"Skipping ref \"{refname}\"")
continue
os.putenv("LAMINAR_REASON", "Push to git repository")
cmd = "laminarc queue freeloadio " \
f"CI_COMMIT_BEFORE_SHA={quote(precommit)} " \
f"CI_COMMIT_SHA={quote(postcommit)} " \
f"CI_COMMIT_REF_NAME={quote(refname)}"
print(cmd)
process = run(cmd, shell=True, capture_output=True)
buildname, buildrun = process.stdout.decode().strip().split(':')
print(f"Queued build: https://laminar.ryuslash.org/jobs/{buildname}/{buildrun}")

View file

@ -1,21 +0,0 @@
#!/usr/bin/env bash
block_push=0
while read -r old new refname; do
while read -r added deleted filename; do
if [[ "$added" == "-" && "$deleted" == "-" ]]; then
block_push=1
echo "ERROR: ${filename} is a binary file."
fi
done < <(git diff --numstat "${old}..${new}")
if [[ $block_push -eq 1 ]]; then
echo "The ref '${refname}' has been rejected"
fi
done
if [[ $block_push -eq 1 ]]; then
echo "Binary files blocked. Please use git-lfs to push to this repo."
exit 1
fi