mirror of
https://github.com/creyD/intelliphoto.git
synced 2026-04-15 21:00:37 +02:00
Added Unit Tests to prep script 2
This commit is contained in:
6
prep.sh
6
prep.sh
@@ -1,3 +1,5 @@
|
|||||||
|
QMAKE_PATH = "/Users/$USER/Qt5.14.0/5.14.0/clang_64/bin/qmake"
|
||||||
|
|
||||||
printLine(){
|
printLine(){
|
||||||
echo "$2$1 \033[0m"
|
echo "$2$1 \033[0m"
|
||||||
}
|
}
|
||||||
@@ -39,7 +41,7 @@ runDoxygen(){
|
|||||||
|
|
||||||
runUnitTests(){
|
runUnitTests(){
|
||||||
printLine "Running Unit Tests..."
|
printLine "Running Unit Tests..."
|
||||||
qmake src/IntelliUnitTest.pro || { printLine "ERROR: qmake not found!" "\033[0;33m"; return; }
|
$QMAKE_PATH src/IntelliUnitTest.pro || { printLine "ERROR: qmake not found!" "\033[0;33m"; return; }
|
||||||
cd src
|
cd src
|
||||||
make || { printLine "ERROR: make not found!" "\033[0;33m"; return; }
|
make || { printLine "ERROR: make not found!" "\033[0;33m"; return; }
|
||||||
./IntelliUnitTest
|
./IntelliUnitTest
|
||||||
@@ -58,6 +60,7 @@ prepareMerge(){
|
|||||||
printLine "Merge Preparation started..."
|
printLine "Merge Preparation started..."
|
||||||
runUncrustify
|
runUncrustify
|
||||||
runCPPCheck
|
runCPPCheck
|
||||||
|
runUnitTests
|
||||||
runDoxygen
|
runDoxygen
|
||||||
gitCommit
|
gitCommit
|
||||||
printLine "Finished." "\033[0;32m"
|
printLine "Finished." "\033[0;32m"
|
||||||
@@ -70,6 +73,7 @@ prepareRelease(){
|
|||||||
cleanDir
|
cleanDir
|
||||||
runUncrustify
|
runUncrustify
|
||||||
runCPPCheck
|
runCPPCheck
|
||||||
|
runUnitTests
|
||||||
runDoxygen
|
runDoxygen
|
||||||
gitCommit
|
gitCommit
|
||||||
printLine "Finished." "\033[0;32m"
|
printLine "Finished." "\033[0;32m"
|
||||||
|
|||||||
Reference in New Issue
Block a user