mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Use of invalid prefixes in changelogs no longer silently fail in Travis.
This commit is contained in:
@@ -25,5 +25,5 @@ script:
|
|||||||
- (! grep 'step_[xy]' maps/**/*.dmm)
|
- (! grep 'step_[xy]' maps/**/*.dmm)
|
||||||
- (! find nano/templates/ -type f -exec md5sum {} + | sort | uniq -D -w 32 | grep nano)
|
- (! find nano/templates/ -type f -exec md5sum {} + | sort | uniq -D -w 32 | grep nano)
|
||||||
- ( md5sum -c - <<< "0af969f671fba6cf9696c78cd175a14a *baystation12.int")
|
- ( md5sum -c - <<< "0af969f671fba6cf9696c78cd175a14a *baystation12.int")
|
||||||
- DreamMaker baystation12.dme
|
|
||||||
- python tools/GenerateChangelog/ss13_genchangelog.py html/changelog.html html/changelogs
|
- python tools/GenerateChangelog/ss13_genchangelog.py html/changelog.html html/changelogs
|
||||||
|
- DreamMaker baystation12.dme
|
||||||
|
|||||||
@@ -126,6 +126,7 @@ if failed_cache_read and os.path.isfile(args.targetFile):
|
|||||||
all_changelog_entries[date] = entry
|
all_changelog_entries[date] = entry
|
||||||
|
|
||||||
del_after = []
|
del_after = []
|
||||||
|
errors = False
|
||||||
print('Reading changelogs...')
|
print('Reading changelogs...')
|
||||||
for fileName in glob.glob(os.path.join(args.ymlDir, "*.yml")):
|
for fileName in glob.glob(os.path.join(args.ymlDir, "*.yml")):
|
||||||
name, ext = os.path.splitext(os.path.basename(fileName))
|
name, ext = os.path.splitext(os.path.basename(fileName))
|
||||||
@@ -146,6 +147,7 @@ for fileName in glob.glob(os.path.join(args.ymlDir, "*.yml")):
|
|||||||
if change not in author_entries:
|
if change not in author_entries:
|
||||||
(change_type, _) = dictToTuples(change)[0]
|
(change_type, _) = dictToTuples(change)[0]
|
||||||
if change_type not in validPrefixes:
|
if change_type not in validPrefixes:
|
||||||
|
errors = True
|
||||||
print(' {0}: Invalid prefix {1}'.format(fileName, change_type), file=sys.stderr)
|
print(' {0}: Invalid prefix {1}'.format(fileName, change_type), file=sys.stderr)
|
||||||
author_entries += [change]
|
author_entries += [change]
|
||||||
new += 1
|
new += 1
|
||||||
@@ -208,3 +210,6 @@ if len(del_after):
|
|||||||
if os.path.isfile(fileName):
|
if os.path.isfile(fileName):
|
||||||
print(' Deleting {0} (delete-after set)...'.format(fileName))
|
print(' Deleting {0} (delete-after set)...'.format(fileName))
|
||||||
os.remove(fileName)
|
os.remove(fileName)
|
||||||
|
|
||||||
|
if errors:
|
||||||
|
sys.exit(1)
|
||||||
|
|||||||
Reference in New Issue
Block a user