This repository was archived by the owner on Apr 12, 2024. It is now read-only.
File tree 4 files changed +123
-5
lines changed
4 files changed +123
-5
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # Script for updating angular-phonecat repo from current local build.
4
+
5
+ echo " #################################"
6
+ echo " ## Update angular-phonecat ###"
7
+ echo " #################################"
8
+
9
+ ARG_DEFS=(
10
+ " --action=(prepare|publish)"
11
+ " [--no-test=(true|false)]"
12
+ )
13
+
14
+ function init {
15
+ TMP_DIR=$( resolveDir ../../tmp)
16
+ BUILD_DIR=$( resolveDir ../../build)
17
+ REPO_DIR=$TMP_DIR /angular-phonecat
18
+ NEW_VERSION=$( cat $BUILD_DIR /version.txt)
19
+ }
20
+
21
+ function prepare {
22
+ echo " -- Cloning angular-phonecat"
23
+ git clone
[email protected] :angular/angular-phonecat.git
$REPO_DIR
24
+
25
+ #
26
+ # copy the files from the build
27
+ #
28
+ echo " -- Updating angular-phonecat"
29
+ cd $REPO_DIR
30
+ ./scripts/private/update-angular.sh $BUILD_DIR
31
+
32
+ # Test
33
+ if [[ $NO_TEST != " true" ]]; then
34
+ ./scripts/private/test-all.sh
35
+ fi
36
+
37
+ # Generate demo
38
+ ./scripts/private/snapshot-web.sh
39
+ git checkout gh-pages
40
+ git pull
41
+ rm -r step*
42
+ mv angular-phonecat-snapshots-web/step* .
43
+ git add step*
44
+ git commit -am " Angular $NEW_VERSION release"
45
+ }
46
+
47
+ function publish {
48
+ cd $REPO_DIR
49
+ echo " -- Pushing angular-phonecat"
50
+ git push origin master -f --tags
51
+ git push origin gh-pages -f
52
+ }
53
+
54
+ source $( dirname $0 ) /../utils.inc
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # Script for updating angular-seed repo from current local build.
4
+
5
+ echo " #################################"
6
+ echo " ## Update angular-seed ###"
7
+ echo " #################################"
8
+
9
+ ARG_DEFS=(
10
+ " --action=(prepare|publish)"
11
+ " [--no-test=(true|false)]"
12
+ )
13
+
14
+ function init {
15
+ TMP_DIR=$( resolveDir ../../tmp)
16
+ BUILD_DIR=$( resolveDir ../../build)
17
+ REPO_DIR=$TMP_DIR /angular-seed
18
+ NEW_VERSION=$( cat $BUILD_DIR /version.txt)
19
+ }
20
+
21
+ function prepare {
22
+ echo " -- Cloning angular-seed"
23
+ git clone
[email protected] :angular/angular-seed.git
$REPO_DIR
24
+
25
+ #
26
+ # copy the files from the build
27
+ #
28
+ echo " -- Updating angular-seed"
29
+ cd $REPO_DIR
30
+ ./scripts/update-angular.sh $BUILD_DIR
31
+
32
+ # Test
33
+ if [[ $NO_TEST != " true" ]]; then
34
+ ./scripts/test-all.sh
35
+ fi
36
+ }
37
+
38
+ function publish {
39
+ cd $REPO_DIR
40
+ echo " -- Pushing angular-seed"
41
+ git push origin master
42
+ }
43
+
44
+ source $( dirname $0 ) /../utils.inc
Original file line number Diff line number Diff line change @@ -8,6 +8,13 @@ ARG_DEFS=(
8
8
" [--no-test=(true|false)]"
9
9
)
10
10
11
+ function init {
12
+ if [[ ! $VERBOSE ]]; then
13
+ VERBOSE=false
14
+ fi
15
+ VERBOSE_ARG=" --verbose=$VERBOSE "
16
+ }
17
+
11
18
function build {
12
19
cd ../..
13
20
@@ -22,8 +29,9 @@ function build {
22
29
}
23
30
24
31
function phase {
25
- ../code.angularjs.org/publish.sh --action=$1
26
- ../bower/publish.sh --action=$1
32
+ ACTION_ARG=" --action=$1 "
33
+ ../code.angularjs.org/publish.sh $ACTION_ARG $VERBOSE_ARG
34
+ ../bower/publish.sh $ACTION_ARG $VERBOSE_ARG
27
35
}
28
36
29
37
function run {
Original file line number Diff line number Diff line change @@ -12,12 +12,24 @@ ARG_DEFS=(
12
12
13
13
function init {
14
14
NG_ARGS=(" $@ " )
15
+ if [[ ! $VERBOSE ]]; then
16
+ VERBOSE=false
17
+ fi
18
+ if [[ ! $NO_TEST ]]; then
19
+ NO_TEST=false
20
+ fi
21
+ VERBOSE_ARG=" --verbose=$VERBOSE "
22
+ NO_TEST_ARG=" --no_test=$VERBOSE "
15
23
}
16
24
17
25
function phase {
18
- ../angular.js/publish.sh --action=$1 " ${NG_ARGS[@]} "
19
- ../code.angularjs.org/publish.sh --action=$1
20
- ../bower/publish.sh --action=$1
26
+ ACTION_ARG=" --action=$1 "
27
+ ../angular.js/publish.sh $ACTION_ARG $VERBOSE_ARG $NO_TEST_ARG \
28
+ --next-version-type=$NEXT_VERSION_TYPE --next-version-name=$NEXT_VERSION_NAME
29
+ ../code.angularjs.org/publish.sh $ACTION_ARG $VERBOSE_ARG
30
+ ../bower/publish.sh $ACTION_ARG $VERBOSE_ARG
31
+ ../angular-seed/publish.sh $ACTION_ARG $VERBOSE_ARG $NO_TEST_ARG
32
+ ../angular-phonecat/publish.sh $ACTION_ARG $VERBOSE_ARG $NO_TEST_ARG
21
33
}
22
34
23
35
function run {
You can’t perform that action at this time.
0 commit comments