diff options
author | Shawn Pearce <sop@google.com> | 2013-05-06 15:22:48 -0700 |
---|---|---|
committer | Shawn Pearce <sop@google.com> | 2013-05-06 15:36:46 -0700 |
commit | bd4e609c3d522d2f7f9efa78129de8f4163698c8 (patch) | |
tree | d1c76bc2ff966f0638056e9de3d6372b3d8367ec /tools/release.sh | |
parent | edf82ea72144bf74443eea7b8f64e5b01eb48a25 (diff) |
Always run acceptance testsv2.6-rc2
I can't trust Maven to run the tests with -Pacceptance. At least
half of my attempts produced no tests run. This is of zero value to
me as a build system, but our contributors have determined Gerrit
will remain stuck with Maven.
Stick contributors with the burden of running the acceptance tests
by default. This way we know the tests are executed.
Change-Id: I678e42651efc162f66929c605247583d7ef6cc8a
Diffstat (limited to 'tools/release.sh')
-rwxr-xr-x | tools/release.sh | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/tools/release.sh b/tools/release.sh index a63a7a16fc..88e4a00763 100755 --- a/tools/release.sh +++ b/tools/release.sh @@ -1,6 +1,6 @@ #!/bin/sh -flags=-Pacceptance +flags= while [ $# -gt 0 ] do @@ -13,8 +13,13 @@ do flags="$flags -Dgerrit.plugins.skip=true" shift ;; + --no-tests|--without-tests) + flags="$flags -Dgerrit.acceptance-tests.skip=true" + flags="$flags -Dmaven.tests.skip=true" + shift + ;; *) - echo >&2 "usage: $0 [--no-documentation] [--no-plugins]" + echo >&2 "usage: $0 [--no-documentation] [--no-plugins] [--no-tests]" exit 1 esac done @@ -29,7 +34,7 @@ then fi ./tools/version.sh --release && -mvn clean package $flags +mvn clean package verify $flags rc=$? ./tools/version.sh --reset |