mirror of
https://github.com/Karaka-Management/Build.git
synced 2026-02-13 09:38:41 +00:00
Fix paths
This commit is contained in:
parent
c1fb7889c0
commit
14cea410bc
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
. config.sh
|
. ${BUILD_PATH}/config.sh
|
||||||
|
|
||||||
# Find empty attributes
|
# Find empty attributes
|
||||||
grep -rln "=\"\"" --include \*.tpl.php ${ROOT_PATH} > ${INSPECTION_PATH}/Modules/html/attributes_empty.log
|
grep -rln "=\"\"" --include \*.tpl.php ${ROOT_PATH} > ${INSPECTION_PATH}/Modules/html/attributes_empty.log
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
. config.sh
|
. ${BUILD_PATH}/config.sh
|
||||||
|
|
||||||
# Html tag inspection
|
# Html tag inspection
|
||||||
TAG[0]="<\/html>"
|
TAG[0]="<\/html>"
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
. config.sh
|
. ${BUILD_PATH}/config.sh
|
||||||
|
|
||||||
# JS code inspection
|
# JS code inspection
|
||||||
CODE[0]="onload"
|
CODE[0]="onload"
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
. config.sh
|
. ${BUILD_PATH}/config.sh
|
||||||
|
|
||||||
find ${ROOT_PATH} -name "*.json" | xargs -L1 jsonlint -q > ${INSPECTION_PATH}/Modules/linting/linting_json.log
|
find ${ROOT_PATH} -name "*.json" | xargs -L1 jsonlint -q > ${INSPECTION_PATH}/Modules/linting/linting_json.log
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
. config.sh
|
. ${BUILD_PATH}/config.sh
|
||||||
|
|
||||||
find ${ROOT_PATH}/phpOMS -name "*.php" | xargs -L1 php -l > ${INSPECTION_PATH}/logs/temp.log
|
find ${ROOT_PATH}/phpOMS -name "*.php" | xargs -L1 php -l > ${INSPECTION_PATH}/logs/temp.log
|
||||||
sed '/^No syntax.*/ d' < ${INSPECTION_PATH}/logs/temp.log > ${INSPECTION_PATH}/Framework/linting/linting_php.log
|
sed '/^No syntax.*/ d' < ${INSPECTION_PATH}/logs/temp.log > ${INSPECTION_PATH}/Framework/linting/linting_php.log
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
. config.sh
|
. ${BUILD_PATH}/config.sh
|
||||||
|
|
||||||
# PHP code inspection
|
# PHP code inspection
|
||||||
CODE[0]="file_get_content"
|
CODE[0]="file_get_content"
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
. config.sh
|
. ${BUILD_PATH}/config.sh
|
||||||
|
|
||||||
php ${TOOLS_PATH}/phploc.phar ${ROOT_PATH}/phpOMS/ > ${INSPECTION_PATH}/Framework/phploc.log
|
php ${TOOLS_PATH}/phploc.phar ${ROOT_PATH}/phpOMS/ > ${INSPECTION_PATH}/Framework/phploc.log
|
||||||
php ${TOOLS_PATH}/phploc.phar ${ROOT_PATH}/Modules/ > ${INSPECTION_PATH}/Modules/phploc.log
|
php ${TOOLS_PATH}/phploc.phar ${ROOT_PATH}/Modules/ > ${INSPECTION_PATH}/Modules/phploc.log
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
. config.sh
|
. ${BUILD_PATH}/config.sh
|
||||||
|
|
||||||
php ${TOOLS_PATH}/phpcs.phar ${ROOT_PATH}/phpOMS --colors --standard="${BUILD_PATH}/phpcs.xml" -s --report=full
|
php ${TOOLS_PATH}/phpcs.phar ${ROOT_PATH}/phpOMS --colors --standard="${BUILD_PATH}/phpcs.xml" -s --report=full
|
||||||
php ${TOOLS_PATH}/phpmd.phar ${ROOT_PATH}/phpOMS text ${BUILD_PATH}/phpmd.xml --exclude *tests* --minimumpriority 1
|
php ${TOOLS_PATH}/phpmd.phar ${ROOT_PATH}/phpOMS text ${BUILD_PATH}/phpmd.xml --exclude *tests* --minimumpriority 1
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Include config
|
# Include config
|
||||||
. config.sh
|
. ${BUILD_PATH}/config.sh
|
||||||
|
|
||||||
# Setting up database for demo and testing
|
# Setting up database for demo and testing
|
||||||
mysql -e 'drop database if exists oms;' -u ${DB_USER} -p${DB_PASSWORD}
|
mysql -e 'drop database if exists oms;' -u ${DB_USER} -p${DB_PASSWORD}
|
||||||
|
|
@ -15,18 +15,18 @@ mysql -e 'create database oms;' -u ${DB_USER} -p${DB_PASSWORD}
|
||||||
php ${TOOLS_PATH}/phpunit.phar -v --configuration ${ROOT_PATH}/tests/phpunit_default.xml --log-junit ${INSPECTION_PATH}/Test/Php/junit_php.xml --testdox-html ${INSPECTION_PATH}/Test/Php/index.html --coverage-html ${INSPECTION_PATH}/Test/Php/coverage --coverage-clover ${INSPECTION_PATH}/Test/Php/coverage.xml > ${INSPECTION_PATH}/Test/Php/phpunit.log
|
php ${TOOLS_PATH}/phpunit.phar -v --configuration ${ROOT_PATH}/tests/phpunit_default.xml --log-junit ${INSPECTION_PATH}/Test/Php/junit_php.xml --testdox-html ${INSPECTION_PATH}/Test/Php/index.html --coverage-html ${INSPECTION_PATH}/Test/Php/coverage --coverage-clover ${INSPECTION_PATH}/Test/Php/coverage.xml > ${INSPECTION_PATH}/Test/Php/phpunit.log
|
||||||
|
|
||||||
# Stats & metrics
|
# Stats & metrics
|
||||||
. Inspection/Php/stats.sh
|
. ${BUILD_PATH}/Inspection/Php/stats.sh
|
||||||
|
|
||||||
# Linting
|
# Linting
|
||||||
. Inspection/Php/linting.sh
|
. ${BUILD_PATH}/Inspection/Php/linting.sh
|
||||||
. Inspection/Json/linting.sh
|
. ${BUILD_PATH}/Inspection/Json/linting.sh
|
||||||
|
|
||||||
# Code style
|
# Code style
|
||||||
. Inspection/Php/style.sh
|
. ${BUILD_PATH}/Inspection/Php/style.sh
|
||||||
|
|
||||||
# Custom html inspections
|
# Custom html inspections
|
||||||
. Inspection/Html/tags.sh
|
. ${BUILD_PATH}/Inspection/Html/tags.sh
|
||||||
. Inspection/Html/attributes.sh
|
. ${BUILD_PATH}/Inspection/Html/attributes.sh
|
||||||
|
|
||||||
# Custom php inspections
|
# Custom php inspections
|
||||||
. Inspection/Php/security.sh
|
. ${BUILD_PATH}/Inspection/Php/security.sh
|
||||||
|
|
|
||||||
14
Js/build.sh
14
Js/build.sh
|
|
@ -1,10 +1,10 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
. config.sh
|
. ${BUILD_PATH}/config.sh
|
||||||
|
|
||||||
. Js/buildBase.sh
|
. ${BUILD_PATH}/Js/buildBase.sh
|
||||||
. Js/buildLib.sh
|
. ${BUILD_PATH}/Js/buildLib.sh
|
||||||
. Js/buildUI.sh
|
. ${BUILD_PATH}/Js/buildUI.sh
|
||||||
. Js/build3D.sh
|
. ${BUILD_PATH}/Js/build3D.sh
|
||||||
. Js/buildChart.sh
|
. ${BUILD_PATH}/Js/buildChart.sh
|
||||||
. Js/buildSocket.sh
|
. ${BUILD_PATH}/Js/buildSocket.sh
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
shell_exec('./buildProject.sh');
|
shell_exec('./buildProject.sh 2> /dev/null &');
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
cd ${ROOT_PATH}
|
cd ${ROOT_PATH}
|
||||||
|
|
||||||
# Run inspection
|
# Run inspection
|
||||||
. Inspection/inspect.sh
|
. ${BUILD_PATH}/Inspection/inspect.sh
|
||||||
|
|
||||||
# Build documentation
|
# Build documentation
|
||||||
php ${TOOLS_PATH}/documentor.phar -s ${ROOT_PATH}/phpOMS -d ${BASE_PATH}/Inspection/Test/Php/docblock -c ${INSPECTION_PATH}/Test/Php/coverage.xml -u ${INSPECTION_PATH}/Test/Php/junit_php.xml -b http://docs.orange-management.de
|
php ${TOOLS_PATH}/documentor.phar -s ${ROOT_PATH}/phpOMS -d ${BASE_PATH}/Inspection/Test/Php/docblock -c ${INSPECTION_PATH}/Test/Php/coverage.xml -u ${INSPECTION_PATH}/Test/Php/junit_php.xml -b http://docs.orange-management.de
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
# Paths
|
# Paths
|
||||||
BASE_PATH="/var/www/html"
|
BASE_PATH="/var/www/html"
|
||||||
ROOT_PATH="/var/www/html/Orange-Management"
|
ROOT_PATH="/var/www/html/Orange-Management"
|
||||||
BUILD_PATH="/var/www/Build"
|
BUILD_PATH="/var/www/html/Build"
|
||||||
|
|
||||||
TOOLS_PATH="/var/www/html/Tools"
|
TOOLS_PATH="/var/www/html/Tools"
|
||||||
RELEASE_PATH="/var/www/html/Release"
|
RELEASE_PATH="/var/www/html/Release"
|
||||||
|
|
@ -19,7 +19,10 @@ DB_PASSWORD="123456"
|
||||||
|
|
||||||
# Git variables
|
# Git variables
|
||||||
GITHUB_URL[0]="https://github.com/Orange-Management/Orange-Management.git"
|
GITHUB_URL[0]="https://github.com/Orange-Management/Orange-Management.git"
|
||||||
GITHUB_URL[1]="https://github.com/Orange-Management/Website.git"
|
GITHUB_URL[1]="https://github.com/Orange-Management/phpOMS.git"
|
||||||
|
GITHUB_URL[2]="https://github.com/Orange-Management/jsOMS.git"
|
||||||
|
GITHUB_URL[3]="https://github.com/Orange-Management/cssOMS.git"
|
||||||
|
GITHUB_URL[4]="https://github.com/Orange-Management/Website.git"
|
||||||
|
|
||||||
GIT_BRANCH="develop"
|
GIT_BRANCH="develop"
|
||||||
|
|
||||||
|
|
|
||||||
5
setup.sh
5
setup.sh
|
|
@ -5,6 +5,9 @@
|
||||||
# Previous cleanup
|
# Previous cleanup
|
||||||
rm -r -f ${ROOT_PATH}
|
rm -r -f ${ROOT_PATH}
|
||||||
rm -r -f ${BASE_PATH}/Website
|
rm -r -f ${BASE_PATH}/Website
|
||||||
|
rm -r -f ${BASE_PATH}/phpOMS
|
||||||
|
rm -r -f ${BASE_PATH}/jsOMS
|
||||||
|
rm -r -f ${BASE_PATH}/cssOMS
|
||||||
|
|
||||||
rm -r -f ${INSPECTION_PATH}
|
rm -r -f ${INSPECTION_PATH}
|
||||||
mkdir -p ${INSPECTION_PATH}
|
mkdir -p ${INSPECTION_PATH}
|
||||||
|
|
@ -19,7 +22,7 @@ done
|
||||||
|
|
||||||
cd ${ROOT_PATH}
|
cd ${ROOT_PATH}
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
git submodule foreach checkout develop
|
git submodule foreach git checkout develop
|
||||||
|
|
||||||
# Creating directories for inspection
|
# Creating directories for inspection
|
||||||
mkdir -p ${INSPECTION_PATH}/logs
|
mkdir -p ${INSPECTION_PATH}/logs
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user