blob: 250061d593671953a233cbbd7840944de7787180 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
nyaci
=====
CI environment for ci.rhe.jp.
Work in progress.
Usage
-----
# Edit the configuration
cp config.rb.example config.rb
$EDITOR config.rb
# Start the Sinatra-based web application
ruby webapp.rb
# Request a build
curl -d secret=<secret> -d branch=<refname> https://ci.rhe.jp/<project>
You may want to kick it from the git hooks (post-receive):
#!/bin/sh
while read oldrev newrev refname
do
if test "$newrev" = "0000000000000000000000000000000000000000"
then
# Removing a branch
continue
fi
branch=$(git rev-parse --symbolic --abbrev-ref "$refname")
echo -n "Ref '$refname': "
curl -s -d secret=unya -d branch="$branch" https://ci.rhe.jp/project
done
License
-------
nyaci is licensed under the MIT license. See COPYING.
|