Skip to content

Commit

Permalink
Add unique prefix to build number
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanlloyd committed Feb 17, 2018
1 parent 408482d commit 8dbb54f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Changed
- Add a unique(ish) prefix to the build number to distinguish builds made
from the same commit.

## [0.3.1] - 2018-02-04
### Fixed
Expand Down
6 changes: 3 additions & 3 deletions scripts/buildno
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ else
fi

if $UNCOMMITED_CHANGES == "true"; then
SUFFIX="-WIP"
SUFFIX=":WIP"
elif ! $IS_RELEASE_COMMIT == "true"; then
SUFFIX="-DEV"
SUFFIX=":DEV"
else
SUFFIX=""
fi

echo "$(git rev-parse --short HEAD)$SUFFIX"
echo "BUILD:$(date | md5sum | rev | cut -c20- | rev):$(git rev-parse --short HEAD)$SUFFIX"

0 comments on commit 8dbb54f

Please sign in to comment.