diff options
author | Thiago Marcos P. Santos <thiago@mapbox.com> | 2016-08-26 16:03:09 +0300 |
---|---|---|
committer | Thiago Marcos P. Santos <thiago@mapbox.com> | 2016-08-26 16:08:44 +0300 |
commit | 7a2bfe32f88fee8d6a29f9e26e1f7a293aaee810 (patch) | |
tree | 3a46da1a8c726a00a2afbd1264c5a79c294f171c /cmake | |
parent | 9605cac3e979f73f7d09d580cbf1087e251f1b49 (diff) | |
download | qtlocation-mapboxgl-7a2bfe32f88fee8d6a29f9e26e1f7a293aaee810.tar.gz |
[tests] Make it possible to disable tests on the CI
Useful for tests that depend on a good network connection and
you want to run manually.
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/test.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cmake/test.cmake b/cmake/test.cmake index 2a83a633c0..c4d9dd9fad 100644 --- a/cmake/test.cmake +++ b/cmake/test.cmake @@ -16,6 +16,12 @@ target_include_directories(mbgl-test PRIVATE platform/default ) +if(DEFINED ENV{CI}) + target_compile_definitions(mbgl-test + PRIVATE -DCI_BUILD=1 + ) +endif() + target_link_libraries(mbgl-test PRIVATE mbgl-core ) |