diff --git a/build/deploy-phpdoc.sh b/build/deploy-phpdoc.sh index f68d1dd0404f7fa67c2a59bf528560ac731b7061..bc3e2fbdfaec0330013bdcecefc10ab7693f1a71 100755 --- a/build/deploy-phpdoc.sh +++ b/build/deploy-phpdoc.sh @@ -20,6 +20,7 @@ printf 'SOURCE_DIR="%s"\n' "$SOURCE_DIR" printf 'SOURCE_REF="%s"\n' "$SOURCE_REF" printf 'TARGET_DIR="%s"\n' "$TARGET_DIR" printf 'TARGET_BRANCH="%s"\n' "$TARGET_BRANCH" +echo # evaluate target reference if git check-ref-format "tags/$SOURCE_REF"; then @@ -43,9 +44,9 @@ else fi # clone repo -printf '\nCloning repo...\n' +printf 'Cloning repo...\n' GIT_DIR="$SOURCE_DIR.git" -git clone -b "$TARGET_BRANCH" "https://github.com/$GITHUB_SLUG.git" "$GIT_DIR" +git clone --branch="$TARGET_BRANCH" "https://github.com/$GITHUB_SLUG.git" "$GIT_DIR" # setup git cd "$GIT_DIR" @@ -61,7 +62,7 @@ cp -R "$SOURCE_DIR" "$TARGET_DIR" # commit changes printf '\nCommiting changes...\n' -git add "$TARGET_DIR" +git add --all "$TARGET_DIR" git commit -m "Add phpDocumentor class docs for $SOURCE_REF" # very simple race condition protection for concurrent Travis builds diff --git a/build/generate-phpdoc.sh b/build/generate-phpdoc.sh index 83fef3f61ebb7bfd1145fa173a7d3b553b6d6921..5e11255b3c1ebb7b36a4005944005d1a579bffdc 100755 --- a/build/generate-phpdoc.sh +++ b/build/generate-phpdoc.sh @@ -11,6 +11,7 @@ echo "Generating phpDocs..." printf 'PHPDOC_SOURCE_DIR="%s"\n' "$PHPDOC_SOURCE_DIR" printf 'PHPDOC_TARGET_DIR="%s"\n' "$PHPDOC_TARGET_DIR" printf 'PHPDOC_TITLE="%s"\n' "$PHPDOC_TITLE" +echo # generate phpdoc phpdoc -d "$PHPDOC_SOURCE_DIR" \