-
Notifications
You must be signed in to change notification settings - Fork 641
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Task: Make cross-OS build script #364
Comments
On a side note - the docs building process will need to remain as windows only for now just because docfx 2 is a netframework project. |
Hi, I working on build process on Linux boxes. powershell core works fine on it. Have you considered running powershell core for non windows build? There are limitations that I'm not aware of maybe. |
Yes, to my knowledge running the Call to build.ps1 directly to run tests on Powershell corepwsh -ExecutionPolicy Bypass -Command "& { Import-Module ./build/psake.psm1; Invoke-Psake ./build/build.ps1 Build,Test -properties @{ configuration='Release';maximumParalellJobs=10 } -parameters @{ packageVersion='4.8.0-beta00013' } }"
Same command using build.bat
This issue is mainly about usability, not functionality. |
… modified build.bat to only pass the arguments to build.ps1 without doing any processing, only checking for the existence of Powershell. Fixes apache#364.
… modified build.bat to only pass the arguments to build.ps1 without doing any processing, only checking for the existence of Powershell. Fixes apache#364.
… modified build.bat to only pass the arguments to build.ps1 without doing any processing, only checking for the existence of Powershell. Fixes #364.
We currently have a
.bat
script file to launch the build from the command line that wraps a Powershell file. Clearly, since.bat
is Windows-only, we will need to make a.sh
script file in order to be able to build on other operating systems.The actual
build.bat
file does nothing more than read command line parameters (in any order they are entered), setting defaults where appropriate, and then launch Powershell with the PSake module.While we could provide instructions to launch the Powershell script using when not running on Windows, the command structure would be simpler for end users if they had a similar
build.sh
wrapper script with the same inputs as thebuild.bat
file (and if it is possible to use the.sh
file on Windows, simply eliminate the.bat
file).Note that the
build.ps
script also generates a replacementbuild.bat
file that eliminates theversion
andpackageVersion
parameters when building a release. This ensures a release distribution'sbuild.bat
file will always build the current release version unless the user manually updates theversion.props
file that is also in the release distribution.build.ps
will need to be updated to generate abuild.sh
file during a release for the same reasons.The text was updated successfully, but these errors were encountered: