Skip to content
Snippets Groups Projects
Commit f518497b authored by Lemmer, Jan's avatar Lemmer, Jan
Browse files

Fix of the CI-Test

parent ebc2f274
Branches
Tags
2 merge requests!32Dev/config,!30Fix CI
Pipeline #591899 failed
......@@ -187,21 +187,6 @@ dlgObj.userMSG(msg);
exportPath = fullfile(storPath,folderName);
configObj.writeConfig(exportPath);
% if ~dlgObj.configError
% % copy config file
% configPath = PlotID.createFileCopy('config.json',folderName,...
% storPath,ID, 'data');
% else
% %create config file
% configPath = fullfile(storPath,folderName,'config.json');
% config = options;
% end
% %write config
% fid = fopen(char(configPath),'w');
% txt = jsonencode(config,'PrettyPrint',true);
% fprintf(fid,txt);
% fclose(fid);
% add further Metadata
meta =struct();
if ispc
......
......@@ -27,6 +27,13 @@ fid = fopen(fullfile('CI_files','log.txt'),'w');
txt = ['default test started ' newline];
fprintf(fid,txt);
% create Config for CI-Tests
fid1 = fopen(fullfile('CI_files','CI_config.json'),'w');
configData.Author = 'CI-Test'; configData.ProjectID = 'CI-001';
txt = jsonencode(configData,'PrettyPrint',true);
%fprintf does not write paths correctly !!!
fwrite(fid1,txt);
fclose(fid1);
try
ProjectID = 'Test01';
......@@ -82,7 +89,9 @@ try
% file name of the data
rdata = {dataset1,dataset2} ; % don't forget the extension
PlotID.Publish(rdata,script, figs, 'Location', 'CI-Test')
PlotID.Publish(rdata,script, figs, 'Location', 'CI-Test',...
'ConfigFileName', 'CI_config.json');
msg = 'simple_test succeed Stage 2';
catch
......@@ -109,6 +118,7 @@ try
delete(['CI_files' filesep '*.mat']);
delete(['CI_files' filesep '*.h5']);
rmdir(['CI_files' filesep 'export'],'s');
delete(fullfile('CI_files','CI_config.json'));
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment