-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an additional test pass run on all mods
Currently our CI doesn't check mod json except for a couple of cases, and in one of those cases (Magiclysm) it doesn't check it on json-only PRs, which is unhelpful. Add an additional test run, called as part of the TEST_STAGE CI job (i.e. the first one, which runs in full on json-only changes). This runs the test executable with every mod enabled (except those from a blacklist), without actually running any tests. The purposes is simply to load all of the mod json, enabling us to catch any errors therein.
- Loading branch information
Showing
3 changed files
with
82 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import sys | ||
import glob | ||
import json | ||
|
||
blacklist_filename, = sys.argv[1:] | ||
with open(blacklist_filename) as blacklist_file: | ||
blacklist = {s.rstrip('\n') for s in blacklist_file.readlines()} | ||
|
||
mods = [] | ||
|
||
for info in glob.glob('data/mods/*/modinfo.json'): | ||
mod_info = json.load(open(info)) | ||
mods.extend(e["ident"] for e in mod_info if e["type"] == "MOD_INFO") | ||
|
||
mods_to_keep = [mod for mod in mods if mod not in blacklist] | ||
|
||
print(','.join(mods_to_keep)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
aftershock | ||
alt_map_key | ||
Animatronics | ||
Battery_Overhaul_Legacy_Mode | ||
blazemod | ||
cbm_slots | ||
classic_zombies | ||
crazy_cataclysm | ||
crt_expansion | ||
desertpack | ||
DinoMod | ||
ew_pack | ||
FIC_Weapons | ||
FujiStruct | ||
generic_guns | ||
Graphical_Overmap | ||
growable-pots | ||
Heavy miners | ||
hydroponics | ||
magiclysm | ||
manualbionicinstall | ||
mapgen_demo | ||
Medieval_Stuff | ||
MMA | ||
modular_turrets | ||
more_locations | ||
More_Survival_Tools | ||
mutant_npcs | ||
my_sweet_cataclysm | ||
national_guard_camp | ||
No_Anthills | ||
No_Bees | ||
no_faults | ||
no_filthy_clothing | ||
No_Fungi | ||
no_medieval_items | ||
no_npc_food | ||
No_Rail_Stations | ||
No_Triffids | ||
novitamins | ||
realguns | ||
safeautodoc | ||
Salvaged_Robots | ||
sees_player_hitbutton | ||
sees_player_retro | ||
sleepdeprivation | ||
speedydex | ||
stats_through_kills | ||
Tanks | ||
Tolerate_This | ||
Urban_Development |