Pass environment variables to subshell CMD
问题 I have a problem in my gitlab-ci.yml on Windows. I launch phpunit with environments variables. So, I have a variable like: PHPUNIT : %SOURCE_PATH%\cgi-bin\php.exe %PHPUNIT_PATH% And some variables are declared before: SOURCE_PATH: 'C:\Source' PHPUNIT_PATH: '"%SOURCE_PATH%\cgi-bin\tests\__init\tools\phpunit.phar"' But when I use the CALL command, Windows doesn't resolve the variable inside the other variable. So if I do: CALL Echo %PHPUNIT% I have: C:\Source\cgi-bin\php.exe "%SOURCE_PATH%\cgi