From 74ed14b7bc4b9d34e605cba40bd6d0a9ddd605cc Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Fri, 28 Jun 2013 23:01:32 +0200 Subject: [PATCH] docs --- README.md | 2 +- lib/btr/btr.sh | 4 +-- lib/btr/tmp.sh | 89 -------------------------------------------------- 3 files changed, 3 insertions(+), 92 deletions(-) delete mode 100755 lib/btr/tmp.sh diff --git a/README.md b/README.md index 1c8a17f..e36ea38 100644 --- a/README.md +++ b/README.md @@ -8,4 +8,4 @@ A simple tool to automate reporting of build and test results. * source: git, svn * build: php, pecl - +* report: mail diff --git a/lib/btr/btr.sh b/lib/btr/btr.sh index 04cf1c2..16c9d6b 100755 --- a/lib/btr/btr.sh +++ b/lib/btr/btr.sh @@ -18,8 +18,8 @@ function help { echo " -C, --configure= Define \$CONFIGURE options" echo echo " Rulesets:" - echo " source: git" - echo " build: php" + echo " source: git, svn" + echo " build: php, pecl" echo " report: mail" echo exit diff --git a/lib/btr/tmp.sh b/lib/btr/tmp.sh deleted file mode 100755 index f304c6a..0000000 --- a/lib/btr/tmp.sh +++ /dev/null @@ -1,89 +0,0 @@ -#!/bin/sh - - -function checkout { - mkdir -p "$BTRDIR" && cd "$BTRDIR" || error - - if test -d "$CLEAN_DIR" - then - echo Pulling updates... - cd "$CLEAN_DIR" && git pull || error - cd .. - else - git clone "$SOURCE_URL" "$CLEAN_DIR" || error - fi - - if test -d "$BRANCH_DIR" - then - cd "$BRANCH_DIR" && git pull || error - cd .. - else - git-new-workdir "$CLEAN_DIR" "$BRANCH_DIR" "$BRANCH" || error - fi - echo -} - -function report { - echo "Reporting..." - cd "$BTRDIR" || error - echo "Running '$REPORT_COMMAND'" - local REPORT_ERROR=$(eval "$REPORT_COMMAND" 2>&1) || error $REPORT_ERROR - exit -} - -function build { - echo "Building..." - cd "$BTRDIR" || error - mkdir -p "$BUILD_DIR" || error - - echo "Running '$BUILD_COMMAND'" - if ! eval "$BUILD_COMMAND" > "$BUILD_REPORT" 2>&1 - then - SUCCESS=FAILURE - report < "$TEST_REPORT" 2>&1 - then - SUCCESS=FAILURE - else - SUCCESS=SUCCESS - diffsum - fi - echo -} - -- 2.30.2