@@ -28,7 +28,7 @@ jobs:
- '[[ ",$DEPLOY_PHPDOC_BRANCHES," == *,"$TRAVIS_BRANCH",* ]] || travis_terminate 0'
- install.sh
script:
- - deploy-phpdoc-branch.sh
+ - deploy-branch.sh
# Release stage
- stage: release
@@ -36,7 +36,7 @@ jobs:
- '[ -n "$TRAVIS_TAG" ] || travis_terminate 0'
- install.sh --release
- - deploy-phpdoc-release.sh
+ - deploy-release.sh
before_deploy:
- create-release-archive.sh "pico-release-$TRAVIS_TAG.tar.gz"
deploy:
@@ -1,5 +1,7 @@
#!/usr/bin/env bash
+export PATH="$(dirname "$0")/tools:$PATH"
+
DEPLOYMENT_ID="${TRAVIS_BRANCH//\//_}"
DEPLOYMENT_DIR="$TRAVIS_BUILD_DIR/_build/deploy-$DEPLOYMENT_ID.git"
@@ -13,6 +13,8 @@ if [ "$DEPLOY_PHPDOC_RELEASES" != "true" ] || [ "$DEPLOY_VERSION_BADGE" != "true
[ "$DEPLOY_PHPDOC_RELEASES" != "true" ] && [ "$DEPLOY_VERSION_BADGE" != "true" ] && [ "$DEPLOY_VERSION_FILE" != "true" ] && [ "$DEPLOY_CLOC_STATS" != "true" ] && exit 0 || echo
fi