Skip to content

Commit

Permalink
CI (travis-ci and coverity) : turn the examples on
Browse files Browse the repository at this point in the history
Now that we can build the examples with cmake, try to.

Signed-off-by: Robin Getz <[email protected]>
  • Loading branch information
rgetz authored and commodo committed Apr 21, 2020
1 parent f69ac5f commit 7a8fbe2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ matrix:
- COVERITY_SCAN_PROJECT_NAME="$TRAVIS_REPO_SLUG"
- COVERITY_SCAN_BRANCH_PATTERN="master"
- COVERITY_SCAN_NOTIFICATION_EMAIL="[email protected]"
- COVERITY_SCAN_BUILD_COMMAND_PREPEND="mkdir build && cd build && cmake .."
- COVERITY_SCAN_BUILD_COMMAND_PREPEND="mkdir build && cd build && cmake -DWITH_EXAMPLES=ON .."
- COVERITY_SCAN_BUILD_COMMAND="make"
# The COVERITY_SCAN_TOKEN
- secure: "QQt2l9IVo0xXWLx7Xqgz/4Iezj7YroY3MKfmG+OhtzkMRx4prhx32/07JMNAcYx6mQrccyZkBNzpYuXlfIZjFL3xDxDj5+iKv5XXpJbRFQGhc5xZtAlzOIqHNMcFc0Aj8J2mZwKfSaDnBdf+nMgKcmn46pYbpJOmPe9iEfeLvvg="
Expand Down
5 changes: 4 additions & 1 deletion CI/travis/before_install_linux
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ handle_centos() {
if is_centos_at_least_ver "8" ; then
# On CentOS 8, avahi-devel & doxygen are in this repo; enable it
yum config-manager --set-enabled PowerTools
else
# On CentOS 8, cdk-devel (Curses Development Kit) does not exist yet
yum -y install ncurses-devel cdk-devel
fi

# CENTOS 6 will has issues with sphinx
Expand All @@ -56,7 +59,7 @@ handle_default() {
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y cmake graphviz \
libaio-dev libavahi-client-dev \
libavahi-common-dev libusb-1.0-0-dev libxml2-dev rpm tar \
bzip2 gzip flex bison git lsb-release python3-pip
bzip2 gzip flex bison git lsb-release python3-pip libncurses5-dev libcdk5-dev

if [ -n "${GH_DOC_TOKEN}" ] ; then
sudo apt-get install -y doxygen man2html
Expand Down
2 changes: 1 addition & 1 deletion CI/travis/make_linux
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ handle_default() {
mkdir -p build
cd build

FLAGS="-DENABLE_PACKAGING=ON -DDEB_DETECT_DEPENDENCIES=ON -DPYTHON_BINDINGS=ON"
FLAGS="-DENABLE_PACKAGING=ON -DDEB_DETECT_DEPENDENCIES=ON -DPYTHON_BINDINGS=ON -DWITH_EXAMPLES=ON"

echo "### cmake ${FLAGS}"
cmake ${FLAGS} ..
Expand Down

0 comments on commit 7a8fbe2

Please sign in to comment.