WarHub / wham

WarHub.ArmouryModel - C# cornerstone library for wargame datafile tools
MIT License
21 stars 4 forks source link

Analyzer checking revision was incremented since last release (if changed) #23

Open amis92 opened 6 years ago

amis92 commented 6 years ago

Due to required integration with git, it's probably best to integrate this on the level of PowerShell test script.

Current idea:

  1. git tag to check there are any tags at all (for the case of first tag ever)
  2. git describe to find the latest tag on which our build is based (if it's the current commit, success, bail out)
  3. git diff --name-only --diff-filter=MR to get the list of files modified
  4. git checkout (detached?) to the latest tag, use wham to produce list of revisions per datafile (just create index.xml?)
  5. git checkout - back to previous state
  6. run tests that will read prev-release index + list of changed files?