phpvms/config/version.yml
Nabeel S e12188b7d3
Issue/327 versioning (#345)
* Switch to semver format

* Rewrite new version check to use Github Releases and cron

* Styling

* Remove v from in front of version

* New version check test fix

* Uncomment test case
2019-08-06 17:48:00 -04:00

31 lines
872 B
YAML

version_source: config
current:
major: 7
minor: 0
patch: 0
git_absorb: git-local
format: '{$major}.{$minor}.{$patch}'
build:
mode: number
length: 6
increment_by: 1
number: 180212-2f8a69
git_absorb: git-local
git:
git-local: 'git rev-parse --verify HEAD'
git-remote: 'git ls-remote {$repository}'
branch: refs/heads/master
repository: '{{ env(''VERSION_GIT_REMOTE_REPOSITORY'') }}'
version:
git-local: 'git describe'
git-remote: 'git ls-remote {$repository} | grep tags/ | grep -v {} | cut -d / -f 3 | sort --version-sort | tail -1'
matcher: '/[V|v]*[ersion]*\s*\.*(\d+)\.(\d+)\.(\d+)\.*(\w*)/'
format:
major: '{$major}'
minor: '{$minor}'
patch: '{$patch}'
build: '{$build}'
version: '{$major}.{$minor}.{$patch} (build {$build})'
full: 'version {{''format.version''}}'
compact: 'v{$major}.{$minor}.{$patch}+{$build}'