From d6d7fe4b07da493d73d9d934e1fe3b459ac8ea46 Mon Sep 17 00:00:00 2001 From: Tobias Bosch Date: Wed, 26 Mar 2014 15:47:20 -0700 Subject: [PATCH] chore(release): don't update phonecat and seed during a release This is no more needed as phonecat and seed are using bower now to get the angular version. --- scripts/angular-phonecat/publish.sh | 54 ----------------------------- scripts/angular-seed/publish.sh | 44 ----------------------- scripts/jenkins/release.sh | 4 +-- 3 files changed, 1 insertion(+), 101 deletions(-) delete mode 100755 scripts/angular-phonecat/publish.sh delete mode 100755 scripts/angular-seed/publish.sh diff --git a/scripts/angular-phonecat/publish.sh b/scripts/angular-phonecat/publish.sh deleted file mode 100755 index f68bc6f4..00000000 --- a/scripts/angular-phonecat/publish.sh +++ /dev/null @@ -1,54 +0,0 @@ -#!/bin/bash - -# Script for updating angular-phonecat repo from current local build. - -echo "#################################" -echo "## Update angular-phonecat ###" -echo "#################################" - -ARG_DEFS=( - "--action=(prepare|publish)" - "[--no-test=(true|false)]" -) - -function init { - TMP_DIR=$(resolveDir ../../tmp) - BUILD_DIR=$(resolveDir ../../build) - REPO_DIR=$TMP_DIR/angular-phonecat - NEW_VERSION=$(cat $BUILD_DIR/version.txt) -} - -function prepare { - echo "-- Cloning angular-phonecat" - git clone git@github.com:angular/angular-phonecat.git $REPO_DIR - - # - # copy the files from the build - # - echo "-- Updating angular-phonecat" - cd $REPO_DIR - ./scripts/private/update-angular.sh $BUILD_DIR - - # Test - if [[ $NO_TEST != "true" ]]; then - ./scripts/private/test-all.sh - fi - - # Generate demo - ./scripts/private/snapshot-web.sh - git checkout gh-pages - git pull - rm -r step* - mv angular-phonecat-snapshots-web/step* . - git add step* - git commit -am "Angular $NEW_VERSION release" -} - -function publish { - cd $REPO_DIR - echo "-- Pushing angular-phonecat" - git push origin master -f --tags - git push origin gh-pages -f -} - -source $(dirname $0)/../utils.inc diff --git a/scripts/angular-seed/publish.sh b/scripts/angular-seed/publish.sh deleted file mode 100755 index 94498d67..00000000 --- a/scripts/angular-seed/publish.sh +++ /dev/null @@ -1,44 +0,0 @@ -#!/bin/bash - -# Script for updating angular-seed repo from current local build. - -echo "#################################" -echo "## Update angular-seed ###" -echo "#################################" - -ARG_DEFS=( - "--action=(prepare|publish)" - "[--no-test=(true|false)]" -) - -function init { - TMP_DIR=$(resolveDir ../../tmp) - BUILD_DIR=$(resolveDir ../../build) - REPO_DIR=$TMP_DIR/angular-seed - NEW_VERSION=$(cat $BUILD_DIR/version.txt) -} - -function prepare { - echo "-- Cloning angular-seed" - git clone git@github.com:angular/angular-seed.git $REPO_DIR - - # - # copy the files from the build - # - echo "-- Updating angular-seed" - cd $REPO_DIR - ./scripts/update-angular.sh $BUILD_DIR - - # Test - if [[ $NO_TEST != "true" ]]; then - ./scripts/test-all.sh - fi -} - -function publish { - cd $REPO_DIR - echo "-- Pushing angular-seed" - git push origin master -} - -source $(dirname $0)/../utils.inc diff --git a/scripts/jenkins/release.sh b/scripts/jenkins/release.sh index bb512f70..d8d21f8a 100755 --- a/scripts/jenkins/release.sh +++ b/scripts/jenkins/release.sh @@ -56,12 +56,10 @@ function phase { ../code.angularjs.org/publish.sh $ACTION_ARG $VERBOSE_ARG ../bower/publish.sh $ACTION_ARG $VERBOSE_ARG - ../angular-seed/publish.sh $ACTION_ARG $VERBOSE_ARG --no-test=true - ../angular-phonecat/publish.sh $ACTION_ARG $VERBOSE_ARG --no-test=true } function run { - # First prepare all scripts (build, test, commit, tag, ...), + # First prepare all scripts (build, commit, tag, ...), # so we are sure everything is all right phase prepare # only then publish to github