-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
It seems that $ENV:BuildRoot never is assigned before Meta.tests.ps1 is executed. As a result $BuildRoot is never assigned in .\<ModuleName>.build.ps1
.
- OS: Windows 10
- PowerShell Version: 5.1
- List the steps to reproduce the problem below (if possible attach a screenshot and/or link to the code):
Create a new module. Close PowerShell session. Run .\Build.ps1 -test
[-] Text files formatting.Files encoding.Doesn't use Unicode encoding 65ms (46ms|19ms)
at <ScriptBlock>, .\Tests\meta\Meta.tests.ps1:20
at <ScriptBlock>, .\Tests\meta\Meta.tests.ps1:19
ParameterBindingValidationException: Cannot bind argument to parameter 'fileInfo' because it is null.
[-] Text files formatting.Indentations.Uses spaces for indentation, not tabs 4ms (3ms|1ms)
at <ScriptBlock>, .\Tests\meta\Meta.tests.ps1:35
at <ScriptBlock>, .\Tests\meta\Meta.tests.ps1:32
ParameterBindingValidationException: Cannot bind argument to parameter 'Path' because it is null.
Note: Replace root module path with .\ for this issue.
After running the tests, $ENV:BuildRoot does get assigned, but appveyor fails at this same place.
Metadata
Metadata
Assignees
Labels
No labels