1#!/bin/sh -e 2 3if [ "x${COVERITY_SCAN_PROJECT_NAME}" != "x" ] ; then exit 0; fi 4 5. CI/travis/lib.sh 6 7handle_default() { 8 mkdir -p build 9 cd build 10 cmake -DENABLE_PACKAGING=ON -DDEB_DETECT_DEPENDENCIES=ON .. 11 make && make package 12 if [ -n "${GH_DOC_TOKEN}" ] && \ 13 [ -f "./generateDocumentationAndDeploy.sh" ] ; then 14 sh generateDocumentationAndDeploy.sh 15 fi 16 cd .. 17} 18 19handle_centos() { 20 mkdir -p build 21 cd build 22 cmake -DENABLE_PACKAGING=ON .. 23 make && make package 24 cd .. 25} 26 27handle_centos_docker() { 28 run_docker_script inside_docker.sh \ 29 "centos:centos${OS_VERSION}" "centos" 30} 31 32handle_ubuntu_docker() { 33 run_docker_script inside_docker.sh \ 34 "ubuntu:${OS_VERSION}" 35} 36 37LIBNAME="$1" 38OS_TYPE=${2:-default} 39OS_VERSION="$3" 40 41handle_${OS_TYPE} 42 43