Skip to content
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

Add Linux support to build scripts. #2470

Merged
merged 3 commits into from
Apr 9, 2018
Merged

Add Linux support to build scripts. #2470

merged 3 commits into from
Apr 9, 2018

Conversation

surban
Copy link
Contributor

@surban surban commented Feb 27, 2018

  • Port UpdateTemplate.cmd to Powershell as UpdateTemplate.ps1.
  • Make build.ps1 compatible with PowerShell Core on Linux.

@surban surban changed the title Add Linux support to build scripts. [WIP] Add Linux support to build scripts. Feb 27, 2018
@surban surban changed the base branch from master to dev March 1, 2018 11:36
@vicancy
Copy link
Contributor

vicancy commented Apr 2, 2018

Build failure:

[11:58:15][Step 3/3] [11:58:18] Finished 'clean' after 8.33 ms
[11:58:15][Step 3/3] [11:58:18] Starting 'build'...
[11:58:16][Step 3/3] Downloading NuGet.exe...
[11:58:16][Step 3/3]
[11:58:16][Step 3/3]
[11:58:16][Step 3/3] Directory: C:\Users\build\AppData\Local
[11:58:16][Step 3/3]
[11:58:16][Step 3/3]
[11:58:16][Step 3/3] Mode LastWriteTime Length Name
[11:58:16][Step 3/3] ---- ------------- ------ ----
[11:58:16][Step 3/3] d---- 2/26/2016 3:00 AM Nuget
[11:58:16][Step 3/3] Error : Update template
[11:58:16][Step 3/3]
[11:58:16][Step 3/3]
[11:58:16][Step 3/3]
[11:58:16][Step 3/3] [11:58:19] 'build' errored after 1.42 s
[11:58:16][Step 3/3] [11:58:19] Error: powershell ./build.ps1 -prod failed with code 1
[11:58:16][Step 3/3] at ChildProcess. (C:\BuildAgent\work\130feb8a19fc2a14\docfx\tools\Deployment\node_modules\child-process-promise\lib\index.js:132:23)
[11:58:16][Step 3/3] at emitTwo (events.js:106:13)
[11:58:16][Step 3/3] at ChildProcess.emit (events.js:194:7)
[11:58:17][Step 3/3] at ChildProcess.cp.emit (C:\BuildAgent\work\130feb8a19fc2a14\docfx\tools\Deployment\node_modules\cross-spawn\lib\enoent.js:40:29)
[11:58:17][Step 3/3] at maybeClose (internal/child_process.js:899:16)
[11:58:17][Step 3/3] at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)

@surban
Copy link
Contributor Author

surban commented Apr 6, 2018

Building on Linux works, but some tests fail, probably due to hard-coded directory separators.

NuGet pack fails due to NuGet/Home#1946.

I guess the next step would be to add a build agent running on Linux?

@surban surban changed the title [WIP] Add Linux support to build scripts. Add Linux support to build scripts. Apr 6, 2018
@vicancy vicancy merged commit 975bc5f into dotnet:dev Apr 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants