~bzg/org-mode-tests

31f70dc5e8e30ac340d70e13fb080abf4151b375 — Bastien 1 year, 2 months ago 3d1267b
mk/run-tests.sh: Update Emacs version in test names
1 files changed, 15 insertions(+), 15 deletions(-)

M mk/run-tests.sh
M mk/run-tests.sh => mk/run-tests.sh +15 -15
@@ 21,37 21,37 @@ previous_head=$(git describe)
git pull
new_head=$(git describe)

echo "Check latest tests against Emacs 26, 27 and 28..."
url_26=https://builds.sr.ht/~bzg/org-mode-test-emacs-26.svg
res_26=$(curl -s "$url" | grep "success")
echo "Check latest tests against Emacs 27, 28 and 29..."
url_27=https://builds.sr.ht/~bzg/org-mode-test-emacs-27.svg
res_27=$(curl -s "$url" | grep "success")
url_28=https://builds.sr.ht/~bzg/org-mode-test-emacs-28.svg
res_28=$(curl -s "$url" | grep "success")
url_29=https://builds.sr.ht/~bzg/org-mode-test-emacs-29.svg
res_29=$(curl -s "$url" | grep "success")

if [ "$1" = "force" ] || [ "$new_head" != "$previous_head" ]
then
    echo "Run test against Emacs 26 using Debian oldstable (bullseye)"
    if  [ "$res_26" != "" ]
    echo "Run test against Emacs 27 using Debian oldstable (bullseye)"
    if  [ "$res_27" != "" ]
    then
	curl -X POST -H "Content-Type: application/json" -d "{\"tags\": [\"org-mode-test-emacs-26\"], \"manifest\": \"$oldstable_alt_report_to\"}" -H "Authorization: Bearer $SR_HT_AUTH_BEARER" https://builds.sr.ht/api/jobs
	curl -X POST -H "Content-Type: application/json" -d "{\"tags\": [\"org-mode-test-emacs-27\"], \"manifest\": \"$oldstable_alt_report_to\"}" -H "Authorization: Bearer $SR_HT_AUTH_BEARER" https://builds.sr.ht/api/jobs
    else
	curl -X POST -H "Content-Type: application/json" -d "{\"tags\": [\"org-mode-test-emacs-26\"], \"manifest\": \"$oldstable\"}" -H "Authorization: Bearer $SR_HT_AUTH_BEARER" https://builds.sr.ht/api/jobs
	curl -X POST -H "Content-Type: application/json" -d "{\"tags\": [\"org-mode-test-emacs-27\"], \"manifest\": \"$oldstable\"}" -H "Authorization: Bearer $SR_HT_AUTH_BEARER" https://builds.sr.ht/api/jobs
    fi

    echo "Run test against Emacs 27 using Debian stable (bookworm)"
    if  [ "$res_27" != "" ]
    echo "Run test against Emacs 28 using Debian stable (bookworm)"
    if  [ "$res_28" != "" ]
    then
	curl -X POST -H "Content-Type: application/json" -d "{\"tags\": [\"org-mode-test-emacs-27\"], \"manifest\": \"$stable_alt_report_to\"}" -H "Authorization: Bearer $SR_HT_AUTH_BEARER" https://builds.sr.ht/api/jobs
	curl -X POST -H "Content-Type: application/json" -d "{\"tags\": [\"org-mode-test-emacs-28\"], \"manifest\": \"$stable_alt_report_to\"}" -H "Authorization: Bearer $SR_HT_AUTH_BEARER" https://builds.sr.ht/api/jobs
    else
	curl -X POST -H "Content-Type: application/json" -d "{\"tags\": [\"org-mode-test-emacs-27\"], \"manifest\": \"$stable\"}" -H "Authorization: Bearer $SR_HT_AUTH_BEARER" https://builds.sr.ht/api/jobs
	curl -X POST -H "Content-Type: application/json" -d "{\"tags\": [\"org-mode-test-emacs-28\"], \"manifest\": \"$stable\"}" -H "Authorization: Bearer $SR_HT_AUTH_BEARER" https://builds.sr.ht/api/jobs
    fi

    echo "Run test against Emacs 28 using Debian unstable (sid)"
    if  [ "$res_28" != "" ]
    echo "Run test against Emacs 29 using Debian unstable (sid)"
    if  [ "$res_29" != "" ]
    then
	curl -X POST -H "Content-Type: application/json" -d "{\"tags\": [\"org-mode-test-emacs-28\"], \"manifest\": \"$unstable_alt_report_to\"}" -H "Authorization: Bearer $SR_HT_AUTH_BEARER" https://builds.sr.ht/api/jobs
	curl -X POST -H "Content-Type: application/json" -d "{\"tags\": [\"org-mode-test-emacs-29\"], \"manifest\": \"$unstable_alt_report_to\"}" -H "Authorization: Bearer $SR_HT_AUTH_BEARER" https://builds.sr.ht/api/jobs
    else
	curl -X POST -H "Content-Type: application/json" -d "{\"tags\": [\"org-mode-test-emacs-28\"], \"manifest\": \"$unstable\"}" -H "Authorization: Bearer $SR_HT_AUTH_BEARER" https://builds.sr.ht/api/jobs
	curl -X POST -H "Content-Type: application/json" -d "{\"tags\": [\"org-mode-test-emacs-29\"], \"manifest\": \"$unstable\"}" -H "Authorization: Bearer $SR_HT_AUTH_BEARER" https://builds.sr.ht/api/jobs
    fi
fi