X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=ci%2Fci_build.sh;fp=ci%2Fci_build.sh;h=5caa2b8d7d5821c0fa3997d931151ebec1ae778e;hb=9075724f37d63fd9b6cca5bc185a22ae13c9d1d0;hp=0000000000000000000000000000000000000000;hpb=f165e5750fff603b11c8f221b7c36a9db4e8e86e;p=ric-plt%2Ftracelibcpp.git diff --git a/ci/ci_build.sh b/ci/ci_build.sh new file mode 100755 index 0000000..5caa2b8 --- /dev/null +++ b/ci/ci_build.sh @@ -0,0 +1,30 @@ +#!/bin/bash +# +# Copyright (c) 2019 AT&T Intellectual Property. +# Copyright (c) 2018-2019 Nokia. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -e + +# UT +cmake -DWITH_TESTING=ON -DHUNTER_JOBS_NUMBER=3 . +make && make test + +# Build packages +make package +# Do small renames +rename 's/-DEVEL/-devel/' *.rpm +rename 's/-DIST//' *.rpm +rename 's/-devel/-dev/' *.deb +rename 's/-dist//' *.deb