diff --git a/CMakeLists.txt b/CMakeLists.txt index 5e99f8031e5..f36e6ef2e3c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,6 +24,10 @@ if(WITH_OSMESA) add_compile_options(-D__OSMESA__) endif() +if($ENV{CI}) + add_compile_options(-DCI_BUILD=1) +endif() + mason_use(geometry VERSION 0.8.0 HEADER_ONLY) mason_use(variant VERSION 1.1.0 HEADER_ONLY) mason_use(unique_resource VERSION dev HEADER_ONLY) diff --git a/test/src/mbgl/test/util.hpp b/test/src/mbgl/test/util.hpp index b8ecf175aac..bce1175c942 100644 --- a/test/src/mbgl/test/util.hpp +++ b/test/src/mbgl/test/util.hpp @@ -18,7 +18,7 @@ #define TEST_IS_SIMULATOR 0 #endif -#if !TEST_IS_SIMULATOR +#if !TEST_IS_SIMULATOR && !CI_BUILD #define TEST_REQUIRES_ACCURATE_TIMING(name) name #else #define TEST_REQUIRES_ACCURATE_TIMING(name) DISABLED_ ## name