Scilab: return exit code 1 from Scilab when module build fails (for Travis test-suite status)
This commit is contained in:
parent
ffc20033be
commit
08b779aee2
1 changed files with 6 additions and 1 deletions
|
|
@ -210,12 +210,17 @@ public:
|
|||
|
||||
/* Write all to the builder.sce file */
|
||||
Printf(builderCode, "];\n");
|
||||
Printf(builderCode, "ret = 1;\n");
|
||||
Printf(builderCode, "if ~isempty(table) then\n");
|
||||
Printf(builderCode, " ilib_build(ilib_name, table, files, libs, [], ldflags, cflags);\n");
|
||||
Printf(builderCode, " libfilename = 'lib' + ilib_name + getdynlibext();\n");
|
||||
Printf(builderCode, " if isfile(libfilename) & isfile('loader.sce') then\n");
|
||||
Printf(builderCode, " ret = 0;\n");
|
||||
Printf(builderCode, " end\n");
|
||||
Printf(builderCode, "end\n");
|
||||
Printf(builderCode, "cd(originaldir);\n");
|
||||
|
||||
Printf(builderCode, "exit");
|
||||
Printf(builderCode, "exit(ret)");
|
||||
builderFile = NewFile(NewStringf("%sbuilder.sce", SWIG_output_directory()), "w", SWIG_output_files());
|
||||
Printv(builderFile, builderCode, NIL);
|
||||
Delete(builderFile);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue