Commit ba7776ac authored by llaffont's avatar llaffont

Gitlab CI integration

parent 314ded3e
[submodule "library/storm"]
path = library/storm
url = http://git.afi-sa.fr/afi/storm.git
#!/bin/sh
COVERAGE_DIR="coverage/$(basename "$PWD")/${CI_BUILD_REF_NAME}/${CI_BUILD_ID}"
git submodule init
git submodule update
phpunit -c tests/phpunit.xml --coverage-text=coverage.txt --coverage-html="../${COVERAGE_DIR}"
echo "</pre>"
echo "<a href='/${COVERAGE_DIR}'>Code coverage</a>"
echo "<pre>"
cat coverage.txt
......@@ -20,7 +20,8 @@
*/
set_include_path('.' . PATH_SEPARATOR . './library'
. PATH_SEPARATOR . '../ZendFramework-1.6.2/library'
. PATH_SEPARATOR . './library/storm/src'
. PATH_SEPARATOR . './library/storm/zf/library'
. PATH_SEPARATOR . get_include_path());
// Includes de base
......
......@@ -27,7 +27,7 @@ require_once(ZEND_FRAMEWORK_PATH.'Zend/Translate.php');
require_once(ZEND_FRAMEWORK_PATH.'Zend/Controller/Action/Helper/FlashMessenger.php');
require_once(ZEND_FRAMEWORK_PATH.'Zend/Registry.php');
require_once(ZEND_FRAMEWORK_PATH.'Zend/Locale.php');
require_once(ROOT_PATH.'library/Storm/Model/Abstract.php');
require_once(ROOT_PATH.'library/storm/src/Storm/Model/Abstract.php');
require_once(ROOT_PATH.'library/ZendAfi/Controller/Action/Helper/ViewRenderer.php');
require_once(ROOT_PATH.'library/ZendAfi/Auth.php');
require_once(ROOT_PATH.'library/Class/Profil/I18nTranslator.php');
......@@ -50,10 +50,9 @@ require_once(ROOT_PATH.'library/ZendAfi/Controller/Plugin/SelectionBib.php');
require_once(ROOT_PATH.'library/ZendAfi/Controller/Plugin/System.php');
require_once(ROOT_PATH.'library/ZendAfi/Controller/Plugin/Popup.php');
require_once(ZEND_FRAMEWORK_PATH.'Zend/Auth.php');
require_once(ROOT_PATH.'library/Storm/Model/Loader.php');
require_once(ROOT_PATH.'library/Storm/Model/Table.php');
require_once(ROOT_PATH.'library/Storm/Inflector.php');
require_once(ROOT_PATH.'library/storm/src/Storm/Model/Loader.php');
require_once(ROOT_PATH.'library/storm/src/Storm/Model/Table.php');
require_once(ROOT_PATH.'library/storm/src/Storm/Inflector.php');
require_once(ROOT_PATH.'library/Class/AdminVar.php');
require_once(ROOT_PATH.'library/Class/Users.php');
require_once(ROOT_PATH.'library/Trait/StaticFileWriter.php');
......
......@@ -58,7 +58,7 @@ function setupConstants() {
defineConstant('VERSION_PERGAME','V-06.32 [r'.array_at(1, explode(' ', '$Revision$ ')).']');
defineConstant('ROOT_PATH', './');
defineConstant('ZEND_FRAMEWORK_PATH', ROOT_PATH.'../ZendFramework-1.6.2/library/');
defineConstant('ZEND_FRAMEWORK_PATH', ROOT_PATH . 'library/storm/zf/library/');
defineConstant('MODULEDIRECTORY','./application/modules');
defineConstant('LANG_DIR', './library/translation/');
......
storm @ d0ad357e
Subproject commit d0ad357e4eebe792b766c959fbe6a3cc121df7ef
......@@ -31,7 +31,9 @@ set_include_path( realpath(dirname(__FILE__)).'/../library'
. PATH_SEPARATOR . realpath(dirname(__FILE__)).'/../library/Class'
. PATH_SEPARATOR . realpath(dirname(__FILE__)).'/library/'
. PATH_SEPARATOR . realpath(dirname(__FILE__)).'/../library/ZendAfi'
. PATH_SEPARATOR . '../ZendFramework-1.6.2/library'
. PATH_SEPARATOR . './library/storm/src'
. PATH_SEPARATOR . './library/storm/tests'
. PATH_SEPARATOR . './library/storm/zf/library'
. PATH_SEPARATOR . realpath(dirname(__FILE__)).'/../application/modules'
. PATH_SEPARATOR . realpath(dirname(__FILE__)).'/application/modules'
. PATH_SEPARATOR . realpath(dirname(__FILE__))
......
......@@ -11,7 +11,7 @@
<testsuite name="ApplicationTestSuite">
<directory>./application/</directory>
<directory>./library/</directory>
<directory>./Storm/</directory>
<directory>../library/storm/tests/Storm/</directory>
</testsuite>
</testsuites>
<filter>
......@@ -19,13 +19,13 @@
<directory suffix=".php">../application</directory>
<directory suffix=".php">../library/Class</directory>
<directory suffix=".php">../library/Trait</directory>
<directory suffix=".php">../library/Storm</directory>
<directory suffix=".php">../library/ZendAfi</directory>
<directory suffix=".php">../library/fonctions</directory>
<exclude>
<file>../index.php</file>
<directory>../library/Class/Pdf</directory>
<directory>../library/Thumbs</directory>
<directory>../library/storm/tests/Storm</directory>
</exclude>
</whitelist>
</filter>
......
#!/bin/sh
git submodule foreach --recursive "git submodule init"
git submodule foreach --recursive "git submodule update"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment