diff --git a/code/_away_mission_tests.dm b/code/_away_mission_tests.dm new file mode 100644 index 00000000000..29ff54f6767 --- /dev/null +++ b/code/_away_mission_tests.dm @@ -0,0 +1,10 @@ +/* + * + * This file is used by Travis to indicate that additional maps need to be compiled to look for errors such as missing paths. + * Do not add anything but the AWAY_MISSION_TEST definition here as it will be overwritten by Travis when running tests. + * + * + * Should you wish to edit set AWAY_MISSION_TEST to 1 like so: + * #define AWAY_MISSION_TEST 1 + */ + #define AWAY_MISSION_TEST 0 \ No newline at end of file diff --git a/maps/submaps/tether_submaps/_tether_submaps.dm b/maps/submaps/tether_submaps/_tether_submaps.dm index 9244a41f3e3..e4825e9d1c9 100644 --- a/maps/submaps/tether_submaps/_tether_submaps.dm +++ b/maps/submaps/tether_submaps/_tether_submaps.dm @@ -1,11 +1,5 @@ // This causes tether submap maps to get 'checked' and compiled, when undergoing a unit test. // This is so Travis can validate PoIs, and ensure future changes don't break PoIs, as PoIs are loaded at runtime and the compiler can't catch errors. -#if MAP_TEST -#include "tether_ships.dmm" -#include "beach/beach.dmm" -#include "beach/cave.dmm" -#endif - /datum/map_template/tether_lateload allow_duplicates = FALSE @@ -25,4 +19,4 @@ /datum/map_template/tether_lateload/away_beach_cave name = "Desert Planet - Z2 Cave" desc = "The beach away mission's cave." - mappath = 'maps/submaps/tether_submaps/beach/cave.dmm' \ No newline at end of file + mappath = 'maps/submaps/tether_submaps/beach/cave.dmm' diff --git a/maps/tether/tether.dm b/maps/tether/tether.dm index 9da16616bc5..d9c4ec63a5e 100644 --- a/maps/tether/tether.dm +++ b/maps/tether/tether.dm @@ -25,4 +25,10 @@ #warn A map has already been included, ignoring Tether -#endif \ No newline at end of file +#endif + +//Away missions defined here for testing +#if AWAY_MISSION_TEST +#include ../submaps/tether_submaps/beach/beach.dmm +#include ../submaps/tether_submaps/beach/cave.dmm +#endif diff --git a/vorestation.dme b/vorestation.dme index 2ed9b9d407a..247e19b079c 100644 --- a/vorestation.dme +++ b/vorestation.dme @@ -10,6 +10,7 @@ #define DEBUG // END_PREFERENCES // BEGIN_INCLUDE +#include "code\_away_mission_tests.dm" #include "code\_macros.dm" #include "code\_map_tests.dm" #include "code\_unit_tests.dm"