Skip to content

Commit

Permalink
Compile also the example in Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoferigo committed Dec 21, 2018
1 parent 1a43005 commit 78a8723
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .ci/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,21 @@ cd $TRAVIS_BUILD_DIR
mkdir -p build && cd build

if [ "$TRAVIS_CMAKE_GENERATOR" = "Visual Studio 15 2017" ] ; then
# Build and install BlockFactory
cmake -G"$TRAVIS_CMAKE_GENERATOR" -A"${TRAVIS_CMAKE_ARCHITECTURE}" ..
cmake --build . --config $TRAVIS_BUILD_TYPE
cmake --build . --target INSTALL
# Build the example
cd $TRAVIS_BUILD_DIR/example
cmake -G"$TRAVIS_CMAKE_GENERATOR" -A"${TRAVIS_CMAKE_ARCHITECTURE}" ..
cmake --build . --config $TRAVIS_BUILD_TYPE
else
# Build and install BlockFactory
cmake -G"$TRAVIS_CMAKE_GENERATOR" -DCMAKE_BUILD_TYPE=$TRAVIS_BUILD_TYPE ..
cmake --build .
cmake --build . --target install
# Build the example
cd $TRAVIS_BUILD_DIR/example
cmake -G"$TRAVIS_CMAKE_GENERATOR" -DCMAKE_BUILD_TYPE=$TRAVIS_BUILD_TYPE ..
cmake --build .
fi

0 comments on commit 78a8723

Please sign in to comment.