xaizek / rocketgit (License: AGPLv3+) (since 2018-12-09)
Light and fast Git hosting solution suitable to serve both as a hub or as a personal code storage with its tickets, pull requests, API and much more.
<root> / tests / _run_tests.sh (c5008c4ec4eecbc6ca33eaa81629861ba9d005e4) (748B) (mode 100755) [raw]
#!/bin/bash

tests="by_http wh_lambda http_keys http_forgot \
	api wh_cloud pr_anon wh_http ssh http_totp totp git_log1 \
	http_admin http_bug \
	http_create_account http_login http_settings http_csrf http_top \
	token util log state cache prof event rights keys user repo git \
	bug hook_update git2 source"

failed=""
add=""
for t in ${tests}; do
	if [ -r "state/${t}" ]; then
		continue
	fi

	echo
	echo "${t}: Running..."
	if [ -r "${t}.sh" ]; then
		./${t}.sh
	else
		php ${t}.php
	fi
	if [ "${?}" != "0" ]; then
		failed="${failed}${add}${t}"
		add=" "
		echo "${t}: FAILED!"
	else
		touch "state/${t}"
	fi
done

echo "${failed}" > _run_tests.failed

echo

if [ "${failed}" = "" ]; then
	exit 0
fi

echo "Some tests failed: ${failed}"
exit 1
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/rocketgit

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/rocketgit

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master