phpvms/config/version.yml

33 lines
892 B
YAML
Raw Normal View History

version_source: config
2017-12-16 08:02:35 +08:00
current:
major: 7
minor: 0
patch: 0
prerelease: 'dev'
buildmetadata: ''
commit: ''
2018-01-07 06:35:18 +08:00
git_absorb: git-local
format: '{$major}.{$minor}.{$patch}'
2017-12-16 08:02:35 +08:00
build:
2018-01-07 06:35:18 +08:00
mode: number
length: 6
number:
2017-12-16 23:27:19 +08:00
git_absorb: git-local
2017-12-16 08:02:35 +08:00
git:
git-local: 'git rev-parse --verify HEAD'
git-remote: 'git ls-remote {$repository}'
branch: refs/heads/master
repository: '{{ env(''VERSION_GIT_REMOTE_REPOSITORY'') }}'
2017-12-16 08:02:35 +08:00
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*)/'
2017-12-16 08:02:35 +08:00
format:
major: '{$major}'
minor: '{$minor}'
patch: '{$patch}'
build: '{$build}'
version: '{$major}.{$minor}.{$patch} (build {$build})'
full: 'version {{''format.version''}}'
compact: '{$major}.{$minor}.{$patch}+{$build}'