Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions build/cmake/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,40 @@ deb() {
return ${__res}
}

test-fast() {
local __res=0
for _ in 1
do
ctest -j`nproc`
__res=$?
if [ ${__res} -ne 0 ]
then
break
fi
done
return ${__res}
}

test() {
local __res=0
for _ in 1
do
build
__res=$?
if [ ${__res} -ne 0 ]
then
break
fi
test-fast
__res=$?
if [ ${__res} -ne 0 ]
then
break
fi
done
return ${__res}
}

main() {
local __res=0
for _ in 1
Expand Down Expand Up @@ -219,6 +253,12 @@ main() {
rpm
deb
;;
test-fast)
test-fast
;;
test)
test
;;
* )
echo "ERROR: Command not found ($command)"
__res=1
Expand Down
9 changes: 9 additions & 0 deletions build/cmake/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,15 @@ services:
<<: *build-setup
command: scl enable devtoolset-7 rh-ruby24 rh-python36 python27 -- bash ../src/build/cmake/build.sh package-fast

test-fast: &test-fast
<<: *build-setup
command: scl enable devtoolset-7 rh-ruby24 rh-python36 python27 -- bash ../src/build/cmake/build.sh test-fast

test: &test
<<: *build-setup
command: scl enable devtoolset-7 rh-ruby24 rh-python36 python27 -- bash ../src/build/cmake/build.sh test

shell:
<<: *build-setup
command: scl enable devtoolset-7 rh-ruby24 rh-python36 python27 -- bash