I have no experience with GitLab
Can you put your module into your ProjectRoot, and use relative directories 
inside the module? Then just change the MAYA_MODULE_PATH for each runner?


On Wednesday, 27 September 2017 19:56:34 UTC+10, yaoys wrote:
>
> Hi all,
> I'm going to use GitLab CI to build and test my maya plugin project. Here 
> is the detail of my system:
> My project locates at the directory e:\dev\myproject on my local machine.
> I set a environment variable MAYA_MODULE_PATH=e:\dev\myproject\moduls
> The module file is e:\dev\myproject\moduls\plugin0.mod, its content is:
> + MAYAVERSION:2016 PLATFORM:win64 plugin0 any e:\dev\myproject\plugin0
> ...
>
> The plugins project will be located at a different directory on each 
> GitLab Runner machine. 
> For example, on Runner0 the directory COULD BE 
> c:\GitLab-Runner\builds\00000000\group0\myproject, and on Runner1 the 
> direcory COULD BE c:\GitLab-Runner\builds\11111111\group0\myproject.
>
>
> The problem is that I can't find a convinent way to let Maya load the 
> plugins on each Runner machine. Here are some ideas in my mind, but I'm 
> not satisfied with them. Could you give any suggestion?
>
> Idea1: 
> On each Runner, set environment variable MAYA_MODULE_PATH= c:\moduls
> On Runner0, modify the content of file c:\moduls\plugin0.mod to 
> + MAYAVERSION:2016 PLATFORM:win64 plugin0 any 
> c:\GitLab-Runner\builds\00000000\group0\myproject\plugin0
> ...
> On Runner1, modify the content of file c:\moduls\plugin0.mod to 
> + MAYAVERSION:2016 PLATFORM:win64 plugin0 any 
> c:\GitLab-Runner\builds\11111111\group0\myproject\plugin0
> ...
>
> If I add another Runner2, I have to modify c:\moduls\plugin0.mod on 
> Runner2 by hand, which is inconvient. 
> + MAYAVERSION:2016 PLATFORM:win64 plugin0 any 
> c:\GitLab-Runner\builds\22222222\group0\myproject\plugin0
> ...
>
>
> Idea2:
> On each Runner, set environment variable MAYA_MODULE_PATH= c:\moduls  
> Modify the content of file c:\moduls\plugin0.mod to 
> + MAYAVERSION:2016 PLATFORM:win64 plugin0 any $(ProjectRoot)\plugin0
> ...
>
> On Runner0, set an environment variable ProjectRoot= 
> c:\GitLab-Runner\builds\00000000\group0\myproject  
>
> On Runner1, set an environment variable ProjectRoot= 
> c:\GitLab-Runner\builds\11111111\group0\myproject  
>
> If I add another Runner2, I only have to set environment variable 
> MAYA_MODULE_PATH= c:\moduls and ProjectRoot= 
> c:\GitLab-Runner\builds\22222222\group0\myproject
>
> But, it seems that Maya mod file can't parse environment variable at all.
>
>
> Cheers
> Yao
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/e4cd9004-8842-445e-8762-a48655d8c102%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to