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

Tests: Added tests for .NET Core 1.0 and 2.0 apps #167

Merged
merged 2 commits into from
May 23, 2019

Conversation

kichalla
Copy link
Contributor

No description provided.

@kichalla kichalla requested a review from a team as a code owner May 23, 2019 01:59
var appOutputDir = $"{appDir}/myoutputdir";
var buildImageScript = new ShellScriptBuilder()
// NOTE: we are using 1.1 'sdk' version to build 1.0 netcoreapp
.AddCommand($"oryx build {appDir} -l dotnet --language-version 1.1 -o {appOutputDir}")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here we have a 1.0 runtime app built with 1.1 SDK

"-c",
buildImageScript
},
"oryxdevms/dotnetcore-1.0",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The runtime image is still 1.0

var appOutputDir = $"{appDir}/myoutputdir";
var buildImageScript = new ShellScriptBuilder()
// NOTE: we are using 2.1 'sdk' version to build 2.0 netcoreapp
.AddCommand($"oryx build {appDir} -l dotnet --language-version 2.1 -o {appOutputDir}")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similarly this is a 2.0 runtime app built with 2.1 SDK

"-c",
buildImageScript
},
"oryxdevms/dotnetcore-2.0",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The runtime image is still 2.0

using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;

namespace app.Controllers
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This apps were taken from the share that @JennyLawrance shared with us

@kichalla kichalla merged commit 4e852cd into master May 23, 2019
@kichalla kichalla deleted the kichalla/add.tests.for.netcoreapp10.and.20 branch May 23, 2019 18:57
@dorfire
Copy link
Contributor

dorfire commented May 23, 2019

Should we have a SOURCE.md?

@kichalla
Copy link
Contributor Author

Should we have a SOURCE.md?

Good question. These apps were from Jenny, so we do not know their source. From their structure it looks like they are dotnet core cli template-based projects, so we are good.

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.

3 participants