1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

chore(travis): Add unit_test launching in travis

This commit is contained in:
Diadlo 2017-01-31 09:19:08 +03:00
parent f5c0d61ae6
commit f6b1cf9311
No known key found for this signature in database
GPG Key ID: 5AF9F2E29107C727

View File

@ -146,15 +146,13 @@ $CXX --version
# needed, otherwise ffmpeg doesn't get detected
export PKG_CONFIG_PATH="$PWD/libs/lib/pkgconfig"
build_qtox() {
bdir() {
pushd .
cd $BUILDDIR
make -j$(nproc)
# check if `qtox` file has been made, is non-empty and is an executable
[[ -s qtox ]] && [[ -x qtox ]]
popd
cd -
}
local BUILDDIR=_build
@ -175,4 +173,14 @@ build_qtox() {
cmake -H. -B"$BUILDDIR"
bdir
}
test_qtox() {
local BUILDDIR=_build
cd $BUILDDIR
make test
cd -
}
build_qtox
test_qtox