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