CI: Fix folder creation on Windows environments

This commit is contained in:
Molkobain
2021-05-17 17:38:25 +02:00
parent 0487cb8701
commit 186ef1689e
2 changed files with 7 additions and 4 deletions

View File

@@ -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/',