Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/m6w6/btr
build, test & report
https://github.com/m6w6/btr
Last synced: 2 days ago
JSON representation
build, test & report
- Host: GitHub
- URL: https://github.com/m6w6/btr
- Owner: m6w6
- License: bsd-2-clause
- Created: 2013-06-28T20:56:59.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-08-05T16:23:27.000Z (over 9 years ago)
- Last Synced: 2025-01-03T13:12:02.174Z (5 days ago)
- Language: Shell
- Homepage:
- Size: 230 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# btr
A poor man's CI tool.
## BUILD TEST REPORT
A simple tool to automate reporting of build and test results.
### Currently supported rulesets:
* ***source:*** git, svn, cvs
* ***build:*** php, pecl, gnu, composer
* ***report:*** mail, notify-send, twilio, irc#### Usage
```
Usage: btr [-hyvqcC] []-h, --help Display this help
-y, --yes Always assume yes
-v, --verbose Be more verbose
-q, --quiet Be more quiet
-c, --clean Clean build
-C, --vcsclean Clean repo/branchOptions:
-f, --config= Read configuration from a file
-s, --source= Use the specified source ruleset
-b, --build= Use the specified build ruleset
-r, --report= Use the specifued report ruleset
-T, --test= Provide test runner arguments
-B, --branch= Checkout this branch
-D, --directory= Use this directory as work root
-S, --suffix= Append suffix to the build nameRules format:
type=argument e.g: [email protected]:m6w6/btr.git
irc=irc://[email protected]/#btr
mail="-c copy@to rcpt@to"
notify-send="-u low"Note though, that some rules do not use any argument.
Rulesets:
source: cvs git svn
build: composer gnu pecl php
report: irc mail notify-send twilioExamples:
Clone PHP's git, use PHP-5.5 branch, build with php ruleset and
run the test suite with valgrind (-m) on a debug build and report
the results with a simple OSD notification:
$ btr -s [email protected]:php/php-src.git -B PHP-5.5 \
-b "php=--enable-debug" -T-m -r notify-send
See also php.example.confClone CURL's git (use master), build with GNU autotools
ruleset which runs 'make check' and mail the report to the
current user. Verbosely show all actions taken:
$ btr -v -s git=https://github.com/bagder/curl.git -b gnu -r mail
See also curl.example.conf```
#### Prerequisites
* GNU getopt
* nmap's ncat (for btrd/btrc)