Przeglądaj źródła

Build system: Move helper scripts to _build/tools dir

Daniel Rudolf 7 lat temu
rodzic
commit
81ebc4c33e

+ 2 - 2
.travis.yml

@@ -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
       script:
-        - deploy-phpdoc-release.sh
+        - deploy-release.sh
       before_deploy:
         - create-release-archive.sh "pico-release-$TRAVIS_TAG.tar.gz"
       deploy:

+ 2 - 0
_build/deploy-phpdoc-branch.sh → _build/deploy-branch.sh

@@ -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"
 

+ 2 - 0
_build/deploy-phpdoc-release.sh → _build/deploy-release.sh

@@ -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
 
+export PATH="$(dirname "$0")/tools:$PATH"
+
 DEPLOYMENT_ID="${TRAVIS_BRANCH//\//_}"
 DEPLOYMENT_DIR="$TRAVIS_BUILD_DIR/_build/deploy-$DEPLOYMENT_ID.git"
 

+ 0 - 0
_build/generate-badge.sh → _build/tools/generate-badge.sh


+ 0 - 0
_build/generate-phpdoc.sh → _build/tools/generate-phpdoc.sh


+ 0 - 0
_build/github-clone.sh → _build/tools/github-clone.sh


+ 0 - 0
_build/github-deploy.sh → _build/tools/github-deploy.sh


+ 0 - 0
_build/github-setup.sh → _build/tools/github-setup.sh


+ 0 - 0
_build/update-cloc-stats.sh → _build/tools/update-cloc-stats.sh


+ 0 - 0
_build/update-phpdoc-list.sh → _build/tools/update-phpdoc-list.sh


+ 0 - 0
_build/update-version-file.sh → _build/tools/update-version-file.sh