diff options
author | Lars Wirzenius <liw@liw.fi> | 2015-06-20 16:55:16 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2015-06-20 17:22:04 +0300 |
commit | 121a0a5f182ccf616ceec3e5c4a2c2c4d03120a1 (patch) | |
tree | 2b9e06d712a84d35dc867396b298c381dd7a6e2c /doc | |
parent | 55782df816a66c9aff493e49abead547c18b0243 (diff) | |
download | ick-121a0a5f182ccf616ceec3e5c4a2c2c4d03120a1.tar.gz |
Mangle upstream and Debian versions for CI builds
Diffstat (limited to 'doc')
-rw-r--r-- | doc/060-cleanly.yarn | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/doc/060-cleanly.yarn b/doc/060-cleanly.yarn index 72ee1a4..602fc3d 100644 --- a/doc/060-cleanly.yarn +++ b/doc/060-cleanly.yarn @@ -15,16 +15,21 @@ what the name of the project is and what its version is. SCENARIO cleanly performs pipeline steps GIVEN a source code repository for project foo version 3.2-1 - WHEN user runs, in foo, cleanly get-name + WHEN user runs, in foo, cleanly --ci get-name THEN the output is "foo\n" - WHEN user runs, in foo, cleanly get-upstream-version - THEN the output is "3.2\n" +In CI mode, we want the upstream version number to be mangled, by +appending the current build number. This avoids having to rely on the +developers to update the version number diligently. For cleanly to do +this, we need to tell it the build number. + + WHEN user runs, in foo, cleanly --ci --buildno=5 get-upstream-version + THEN the output is "3.2.ci5\n" + ## Create upstream release tar archive -We create a tar archive by extracing the source code from git. The -operation needs to know the upstream name and version number. +We create a tar archive by extracing the source code from git. WHEN user runs, in foo, cleanly --ci --buildno 42 tarball THEN file foo-3.2.ci42.tar.xz exists |