mirror of
https://github.com/creyD/intelliphoto.git
synced 2026-04-12 19:40:28 +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(){
|
||||
echo "$2$1 \033[0m"
|
||||
}
|
||||
@@ -39,7 +41,7 @@ runDoxygen(){
|
||||
|
||||
runUnitTests(){
|
||||
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
|
||||
make || { printLine "ERROR: make not found!" "\033[0;33m"; return; }
|
||||
./IntelliUnitTest
|
||||
@@ -58,6 +60,7 @@ prepareMerge(){
|
||||
printLine "Merge Preparation started..."
|
||||
runUncrustify
|
||||
runCPPCheck
|
||||
runUnitTests
|
||||
runDoxygen
|
||||
gitCommit
|
||||
printLine "Finished." "\033[0;32m"
|
||||
@@ -70,6 +73,7 @@ prepareRelease(){
|
||||
cleanDir
|
||||
runUncrustify
|
||||
runCPPCheck
|
||||
runUnitTests
|
||||
runDoxygen
|
||||
gitCommit
|
||||
printLine "Finished." "\033[0;32m"
|
||||
|
||||
Reference in New Issue
Block a user