MATSUNO★Tokuhiro"'<xmp>
/
Ukigumo-Agent-v0.0.6
⭐ Starred 1
GitHub stars
/
README.md
Ukigumo-Agent
Test runner server for Ukigumo CI tool set.

This server runs test cases by git hooks.
Installation
You can install released version from CPAN!
% curl -L http://cpanmin.us | perl - Ukigumo::Agent
Git hooks
You can add hook script for your remote git repo.
Put following code to hooks/post-receive, and chmod +x.
#!/bin/sh
while read oldrev newrev refname
do
branch=$(git rev-parse --symbolic --abbrev-ref $refname)
repo_url=git://example.com/example.git
ukigumo_base="http://127.0.0.1:1984"
curl --fail --silent -X POST "$ukigumo_base/api/v0/enqueue?repository=$repo_url&branch=$branch&oldrev=$oldrev&newrev=$newrev"
done
Then, git repo calls ukigumo-agent server after push, automatically.