Skip to content

Commit

Permalink
Add stubs_only mode to Travis
Browse files Browse the repository at this point in the history
This mode builds with no optional components (no PCL, especially), but
with stubs.
  • Loading branch information
gadomski committed Sep 17, 2014
1 parent da763b3 commit dd76b4f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -8,6 +8,7 @@ compiler:

env:
- PDAL_OPTIONAL_COMPONENTS=all
- PDAL_OPTIONAL_COMPONENTS=stubs_only
- PDAL_OPTIONAL_COMPONENTS=none

before_install: ./scripts/ci/before_install.sh
Expand Down
8 changes: 7 additions & 1 deletion scripts/ci/script.sh
Expand Up @@ -8,9 +8,15 @@ cd _build || exit 1
case "$PDAL_OPTIONAL_COMPONENTS" in
all)
OPTIONAL_COMPONENT_SWITCH=ON
STUBS_SWITCH=OFF
;;
stubs_only)
OPTIONAL_COMPONENT_SWITCH=OFF
STUBS_SWITCH=ON
;;
none)
OPTIONAL_COMPONENT_SWITCH=OFF
STUBS_SWITCH=OFF
;;
*)
echo "Unrecognized value for PDAL_OPTIONAL_COMPONENTS=$PDAL_OPTIONAL_COMPONENTS"
Expand Down Expand Up @@ -41,7 +47,7 @@ cmake \
-DWITH_SQLITE=OFF \
-DENABLE_CTEST=OFF \
-DWITH_HDF5=OFF \
-DWITH_STUBS=OFF \
-DWITH_STUBS=$STUBS_SWITCH \
-G "$PDAL_CMAKE_GENERATOR" \
..

Expand Down

0 comments on commit dd76b4f

Please sign in to comment.