Enhancing onos-release to check for no SNAPSHOTs.
Adding release readiness test script. Change-Id: Id0e7fe3a83279cf6cf2c5c6cf92048377702894e
Showing
3 changed files
with
43 additions
and
0 deletions
... | @@ -22,6 +22,9 @@ cd $ONOS_ROOT | ... | @@ -22,6 +22,9 @@ cd $ONOS_ROOT |
22 | onos-change-version $NEW_VERSION | 22 | onos-change-version $NEW_VERSION |
23 | export ONOS_VERSION=$NEW_VERSION | 23 | export ONOS_VERSION=$NEW_VERSION |
24 | 24 | ||
25 | +# Validate integrity of the versioning | ||
26 | +onos-validate-change-version | ||
27 | + | ||
25 | # Build ONOS & deploy to staging repo using the release profile. | 28 | # Build ONOS & deploy to staging repo using the release profile. |
26 | onos-build && onos-package --tar --zip && mvn -Prelease clean deploy -DskipTests | 29 | onos-build && onos-package --tar --zip && mvn -Prelease clean deploy -DskipTests |
27 | 30 | ... | ... |
tools/build/onos-validate-change-version
0 → 100755
1 | +#!/bin/bash | ||
2 | +# ----------------------------------------------------------------------------- | ||
3 | +# Validates that no pom versions contain SNAPSHOT. | ||
4 | +# ----------------------------------------------------------------------------- | ||
5 | + | ||
6 | +[ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1 | ||
7 | + | ||
8 | +aux=/tmp/pom-$$.log | ||
9 | +trap "rm -f $aux 2>/dev/null" EXIT | ||
10 | + | ||
11 | +grep -r SNAPSHOT . | \ | ||
12 | + grep -v -f $(dirname $0)/onos-validate-change-version.excludes > $aux | ||
13 | + | ||
14 | +[ ! -s $aux ] && echo "There are files containing SNAPSHOT references:" && \ | ||
15 | + cat $aux && exit 1 | ||
16 | +exit 0 | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | +\./build.log | ||
2 | +\./.git | ||
3 | +\./target/ | ||
4 | +\./tools/build/onos-change-version | ||
5 | +\./tools/build/onos-release | ||
6 | +\./tools/build/onos-snapshot | ||
7 | + | ||
8 | +\./tools/package/archetypes/.*/archetype\.properties | ||
9 | +\./tools/package/maven-plugin/pom.xml | ||
10 | +\./tools/build/conf/pom.xml | ||
11 | + | ||
12 | +\./web/gui/src/main/java/org/onosproject/ui/impl/TopologyViewMessageHandlerBase.java | ||
13 | +\./core/api/src/test/java/org/onosproject/VersionTest.java | ||
14 | + | ||
15 | +\./tools/package/yangtools/pom.xml | ||
16 | +\./tools/package/yangtools/src/main/resources/pom-template.xml | ||
17 | +\./utils/yangutils/pom.xml | ||
18 | + | ||
19 | +\./apps/openstackrouting/pom.xml | ||
20 | +\./apps/openstackswitching/pom.xml | ||
21 | +\./apps/vrouter/pom.xml | ||
22 | + | ||
23 | +\./protocols/ospf/ | ||
24 | +\./protocols/snmp/ | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
-
Please register or login to post a comment