mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-30 22:18:46 +02:00
CI: Fix folder creation on Windows environments
This commit is contained in:
@@ -148,15 +148,17 @@ class MFCompilerTest extends ItopTestCase {
|
||||
}
|
||||
|
||||
public function testCompileThemes(){
|
||||
$sXmlDataCustoFilePath = realpath(__DIR__ . '/ressources/datamodels/datamodel-branding.xml');
|
||||
$sFullmoonThemeCompiledFolder = $this->sTmpDir.DIRECTORY_SEPARATOR.'branding'.DIRECTORY_SEPARATOR.'themes'.DIRECTORY_SEPARATOR.'fullmoon'.DIRECTORY_SEPARATOR;
|
||||
|
||||
$sXmlDataCustoFilePath = realpath(__DIR__.'/ressources/datamodels/datamodel-branding.xml');
|
||||
$oDom = new MFDocument();
|
||||
$oDom->load($sXmlDataCustoFilePath);
|
||||
|
||||
/** @var \MFElement $oBrandingNode */
|
||||
$oBrandingNode = $oDom->GetNodes('branding')->item(0);
|
||||
|
||||
$this->RecurseMkdir($this->sTmpDir.'/branding/themes/fullmoon/');
|
||||
file_put_contents($this->sTmpDir.'/branding/themes/fullmoon/main.css', "");
|
||||
$this->RecurseMkdir($sFullmoonThemeCompiledFolder);
|
||||
file_put_contents($sFullmoonThemeCompiledFolder.'main.css', "");
|
||||
|
||||
$aImportsPaths = array(
|
||||
APPROOT.'css/',
|
||||
|
||||
Reference in New Issue
Block a user