Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign upAdding fxdependent PS package tests #7830
Conversation
anmenaga
assigned
adityapatwardhan
Sep 20, 2018
anmenaga
requested review from
TravisEz13 and
adityapatwardhan
Sep 20, 2018
anmenaga
requested a review
from
daxian-dbw
as a
code owner
Sep 20, 2018
TravisEz13
reviewed
Sep 20, 2018
|
|
||
| # Download and run tests | ||
| RUN $TESTDOWNLOADCOMMAND | ||
| RUN dotnet /opt/microsoft/powershell/pwsh.dll -c "Import-Module /PowerShell/build.psm1;\$dir='/usr/local/share/powershell/Modules';\$null=New-Item -Type Directory -Path \$dir -ErrorAction SilentlyContinue;Restore-PSPester -Destination \$dir;exit (Invoke-Pester $TESTLIST -PassThru).FailedCount" |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
TravisEz13
requested changes
Sep 20, 2018
| @@ -0,0 +1,32 @@ | |||
| FROM centos:7 | |||
This comment has been minimized.
This comment has been minimized.
TravisEz13
Sep 20, 2018
Member
We should base this off the 2.1-runtime and 2.1-sdk image flavors from https://hub.docker.com/r/microsoft/dotnet/tags/
This comment has been minimized.
This comment has been minimized.
anmenaga
Sep 26, 2018
Author
Contributor
Updated this for ubuntu18.04 and debian.9;
Unfortunately they don't have any other images.
This comment has been minimized.
This comment has been minimized.
| apt-transport-https \ | ||
| locales \ | ||
| git \ | ||
| wget |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
|
||
| # Install dependencies | ||
| RUN yum install -y \ | ||
| curl \ |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
adityapatwardhan
requested changes
Sep 24, 2018
|
|
||
| # Install dotnet-runtime | ||
| RUN rpm -Uvh https://packages.microsoft.com/config/rhel/7/packages-microsoft-prod.rpm | ||
| RUN yum install -y \ |
This comment has been minimized.
This comment has been minimized.
adityapatwardhan
Sep 24, 2018
Member
This wont be needed if using the 2.1-sdk or 2.1-runtime image is used.
This comment has been minimized.
This comment has been minimized.
anmenaga
Sep 26, 2018
Author
Contributor
Updated base image for ubuntu18.04 and debian.9;
Unfortunately .NET doesn't have any other images.
| git \ | ||
| wget | ||
|
|
||
| # Install dotnet-runtime |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
@TravisEz13 @adityapatwardhan please take a look again. |
adityapatwardhan
approved these changes
Sep 28, 2018
This comment has been minimized.
This comment has been minimized.
|
@TravisEz13 Please have another look. |
This comment has been minimized.
This comment has been minimized.
|
@anmenaga Can you have a look at the CodeFactor issues? |
TravisEz13
approved these changes
Oct 1, 2018
This comment has been minimized.
This comment has been minimized.
|
@TravisEz13 @anmenaga There are issues reported by CodeFactor for Docker files. Should they be resolved? |
This comment has been minimized.
This comment has been minimized.
|
As far as I can tell, All the docker issues from CodeFactor are false positives. |
anmenaga commentedSep 20, 2018
PR Summary
Fix #7750
fxdependent package = .NET framework dependent PowerShell package.
It is is a small-footprint (~22 MB) PowerShell package that can be run on a machine where dotnet runtime is installed separately. Requirement for having such package is driven by .NET team.
This PR adds release-time tests for fxdependent package for all currently supported Linux configurations.
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:to the beginning of the title and remove the prefix when the PR is ready.[feature]if the change is significant or affects feature tests