mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-31 09:00:25 +01:00
Add unit test to count to_world instances (#9694)
* Add unit test to count to_world instances * Update the macro count and change macros to use -eq aswell Co-authored-by: Werner <Arrow768@users.noreply.github.com>
This commit is contained in:
+4
-2
@@ -6,7 +6,8 @@ env:
|
||||
global:
|
||||
BYOND_MAJOR="513"
|
||||
BYOND_MINOR="1517"
|
||||
MACRO_COUNT=77
|
||||
MACRO_COUNT=0
|
||||
TO_WORLD_COUNT=223
|
||||
FLYWAY_BUILD="5.2.4"
|
||||
NODE_VERSION=10
|
||||
RUST_G_VERSION="0.4.2a"
|
||||
@@ -86,7 +87,8 @@ jobs:
|
||||
- (cd vueui && (npm run lint | tee lint.log))
|
||||
- grep "No lint errors found!" vueui/lint.log
|
||||
- (cd vueui && npm run build)
|
||||
- (num=`grep -E '\\\\(red|blue|green|black|b|i[^mc])' **/*.dm | wc -l`; echo "$num escapes (expecting ${MACRO_COUNT} or less)"; [ $num -le ${MACRO_COUNT} ])
|
||||
- (num=`grep -E '\\\\(red|blue|green|black|b|i[^mc])' **/*.dm | wc -l`; echo "$num escapes (expecting ${MACRO_COUNT} or less)"; [ $num -eq ${MACRO_COUNT} ])
|
||||
- (num=`grep -r --include \*.dm -oh to_world\( . | wc -w`; echo "$num to_worlds (expecting ${TO_WORLD_COUNT})"; [ $num -eq ${TO_WORLD_COUNT} ])
|
||||
- awk -f tools/indentation.awk **/*.dm
|
||||
- md5sum -c - <<< "60a49502d9f6dfdcc255deb98c901b72 *html/changelogs/example.yml"
|
||||
- python3 tools/TagMatcher/tag-matcher.py ../..
|
||||
|
||||
Reference in New Issue
Block a user