POLARIS?: Separate away mission tests

This commit is contained in:
Arokha Sieyes
2018-01-27 14:12:20 -05:00
parent 3c4b979d5b
commit dddf7a1ba4
4 changed files with 19 additions and 8 deletions
+10
View File
@@ -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
@@ -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'
mappath = 'maps/submaps/tether_submaps/beach/cave.dmm'
+7 -1
View File
@@ -25,4 +25,10 @@
#warn A map has already been included, ignoring Tether
#endif
#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
+1
View File
@@ -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"