aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/jenkins/release.sh
blob: 2763b128d16a1464ae2966ec721fc27ba3b0716d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash

echo "#################################"
echo "#### Cut release ################"
echo "#################################"

ARG_DEFS=(
  "--next-version-type=(patch|minor|major)"
  "--next-version-name=(.+)"
  "[--no-test=(true|false)]"
)

function init {
  NG_ARGS=("$@")
}

function phase {
  ../angular.js/publish.sh --action=$1 "${NG_ARGS[@]}"
  ../code.angularjs.org/publish.sh --action=$1
  ../bower/publish.sh --action=$1
}

function run {
  # First prepare all scripts (build, test, commit, tag, ...),
  # so we are sure everything is all right
  phase prepare
  # only then publish to github
  phase publish
}

source $(dirname $0)/../utils.inc