From dc2583e525ed3ab6067b8876ebd1f18941e909dd Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sat, 6 Mar 2021 19:49:42 +0100 Subject: [PATCH] Added badge images for test statuses --- .gitignore | 1 + bin/run_ci_tests.sh | 4 +++- img/failed.svg | 1 + img/passed.svg | 1 + 4 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 img/failed.svg create mode 100644 img/passed.svg diff --git a/.gitignore b/.gitignore index b6d592e..0b92558 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /logs +/img/status.svg diff --git a/bin/run_ci_tests.sh b/bin/run_ci_tests.sh index a801482..618c516 100755 --- a/bin/run_ci_tests.sh +++ b/bin/run_ci_tests.sh @@ -46,13 +46,15 @@ prepare_venv install_repo run_tests ret=$? +cleanup if [[ $ret == 0 ]]; then echo "Status: PASSED" + cp ./img/passed.svg ./img/status.svg else echo "Status: FAILED" + cp ./img/failed.svg ./img/status.svg fi -cleanup exit $ret diff --git a/img/failed.svg b/img/failed.svg new file mode 100644 index 0000000..9f2e346 --- /dev/null +++ b/img/failed.svg @@ -0,0 +1 @@ +buildbuildfailingfailing \ No newline at end of file diff --git a/img/passed.svg b/img/passed.svg new file mode 100644 index 0000000..983bcec --- /dev/null +++ b/img/passed.svg @@ -0,0 +1 @@ +build: passingbuildpassing \ No newline at end of file