mirror of
https://gitlab.com/spaceti-app/integrations/common/server-sdk.git
synced 2026-07-12 12:00:46 +02:00
removed unnecessary code
This commit is contained in:
parent
08127bad50
commit
b15596b25f
@ -10,7 +10,6 @@ COVERAGE_DIR=$SOURCE_DIR"/build/testcc-info"
|
||||
HTML_RESULTS_DIR=$SOURCE_DIR"/build/testcc-html"
|
||||
COVERAGE_FILTER="*Qt*.framework* *Xcode.app* *.moc *moc_*.cpp */test/* *qrc_* ui_* *qt.headers */build/* *main*.* *c++*"
|
||||
|
||||
main() {
|
||||
info "Getting .pro file"
|
||||
PRO_FILE=$(ls *.pro)
|
||||
|
||||
@ -104,28 +103,3 @@ main() {
|
||||
if [ "$1" == "open" ]; then
|
||||
open "${HTML_RESULTS_DIR}/index.html" &
|
||||
fi
|
||||
}
|
||||
|
||||
# ################
|
||||
# Output funcitons
|
||||
# ################
|
||||
RED='\033[0;31m'
|
||||
GREEN='\033[0;32m'
|
||||
BLUE='\033[0;34m'
|
||||
NC='\033[0m' # No Color
|
||||
|
||||
function info () {
|
||||
echo -e "[${BLUE} $@ ${NC}]"
|
||||
}
|
||||
|
||||
function pass() {
|
||||
echo -e "[${GREEN}PASS${NC}] $@"
|
||||
}
|
||||
|
||||
function fail() {
|
||||
FAIL="true"; echo -e "[${RED}FAIL${NC}] $@"
|
||||
exit
|
||||
}
|
||||
|
||||
# Run main function
|
||||
main "$@"
|
||||
|
||||
@ -7,17 +7,14 @@ SOURCE_DIR=$PWD
|
||||
BUILD_DIR=$SOURCE_DIR"/build"
|
||||
DOC_DIR=$BUILD_DIR"/doc"
|
||||
|
||||
main() {
|
||||
|
||||
if [ ! -d src ]; then
|
||||
fail "src dir does not exists"
|
||||
else
|
||||
pass "src dir exits"
|
||||
fi
|
||||
|
||||
doc "$@"
|
||||
}
|
||||
|
||||
function doc() {
|
||||
info "Generation documentation"
|
||||
mkdir -p $BUILD_DIR
|
||||
cd $BUILD_DIR
|
||||
@ -36,29 +33,3 @@ function doc() {
|
||||
if [ "$1" == "open" ]; then
|
||||
open $DOC_DIR/html/index.html
|
||||
fi
|
||||
}
|
||||
|
||||
# ################
|
||||
# Output funcitons
|
||||
# ################
|
||||
RED='\033[0;31m'
|
||||
GREEN='\033[0;32m'
|
||||
BLUE='\033[0;34m'
|
||||
NC='\033[0m' # No Color
|
||||
|
||||
function info () {
|
||||
echo -e "[${BLUE} $@ ${NC}]"
|
||||
}
|
||||
|
||||
function pass() {
|
||||
echo -e "[${GREEN}PASS${NC}] $@"
|
||||
}
|
||||
|
||||
function fail() {
|
||||
FAIL="true"; echo -e "[${RED}FAIL${NC}] $@"
|
||||
exit
|
||||
}
|
||||
|
||||
|
||||
# Run main function
|
||||
main "$@"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user