Skip to content
Henrik edited this page Aug 21, 2014 · 1 revision

Helper for reading a .semver file and moving information from that file, as well as information from the git commit being built upon, to the execution of rake/albacore.

Defines/sets ENV vars:

  • BUILD_VERSION
  • NUGET_VERSION
  • FORMAL_VERSION

BUILD_VERSION s constructed as such: .semver-file -> %Major.%minor.%patch%special.git-sha1.

NUGET_VERSION leaves out the git commit hash.

FORMAL_VERSION uses only the integers 'major', 'minor' and 'patch'.

Publishes symbol :build_version.

require 'albacore/tasks/versionizer'
Albacore::Tasks::Versionizer.new :versioning
Clone this wiki locally