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:
parent
f5c0d61ae6
commit
f6b1cf9311
|
@ -146,15 +146,13 @@ $CXX --version
|
||||||
# needed, otherwise ffmpeg doesn't get detected
|
# needed, otherwise ffmpeg doesn't get detected
|
||||||
export PKG_CONFIG_PATH="$PWD/libs/lib/pkgconfig"
|
export PKG_CONFIG_PATH="$PWD/libs/lib/pkgconfig"
|
||||||
|
|
||||||
|
|
||||||
build_qtox() {
|
build_qtox() {
|
||||||
bdir() {
|
bdir() {
|
||||||
pushd .
|
|
||||||
cd $BUILDDIR
|
cd $BUILDDIR
|
||||||
make -j$(nproc)
|
make -j$(nproc)
|
||||||
# check if `qtox` file has been made, is non-empty and is an executable
|
# check if `qtox` file has been made, is non-empty and is an executable
|
||||||
[[ -s qtox ]] && [[ -x qtox ]]
|
[[ -s qtox ]] && [[ -x qtox ]]
|
||||||
popd
|
cd -
|
||||||
}
|
}
|
||||||
|
|
||||||
local BUILDDIR=_build
|
local BUILDDIR=_build
|
||||||
|
@ -175,4 +173,14 @@ build_qtox() {
|
||||||
cmake -H. -B"$BUILDDIR"
|
cmake -H. -B"$BUILDDIR"
|
||||||
bdir
|
bdir
|
||||||
}
|
}
|
||||||
|
|
||||||
|
test_qtox() {
|
||||||
|
local BUILDDIR=_build
|
||||||
|
|
||||||
|
cd $BUILDDIR
|
||||||
|
make test
|
||||||
|
cd -
|
||||||
|
}
|
||||||
|
|
||||||
build_qtox
|
build_qtox
|
||||||
|
test_qtox
|
||||||
|
|
Loading…
Reference in New Issue
Block a user