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

Install core system deps in install task #26

Merged
merged 2 commits into from
Aug 14, 2020
Merged

Install core system deps in install task #26

merged 2 commits into from
Aug 14, 2020

Conversation

mcafaro
Copy link
Member

@mcafaro mcafaro commented Aug 13, 2020

No description provided.

@mcafaro mcafaro requested a review from jwpereira August 13, 2020 20:40
@mcafaro
Copy link
Member Author

mcafaro commented Aug 13, 2020

@mcafaro
Copy link
Member Author

mcafaro commented Aug 14, 2020

Copy link

@jwpereira jwpereira left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@@ -11,7 +11,7 @@ process.env.SYSTEM_SERVERTYPE = "hosted";

tr.registerMock("azure-pipelines-tool-lib/tool", {
downloadTool(url: string) {
if (url !== "https://ssd.mathworks.com/supportfiles/ci/ephemeral-matlab/v0/install.sh") {
if (url !== "https://ssd.mathworks.com/supportfiles/ci/matlab-deps/v0/install.sh" && url !== "https://ssd.mathworks.com/supportfiles/ci/ephemeral-matlab/v0/install.sh") {

Choose a reason for hiding this comment

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

Suggested change
if (url !== "https://ssd.mathworks.com/supportfiles/ci/matlab-deps/v0/install.sh" && url !== "https://ssd.mathworks.com/supportfiles/ci/ephemeral-matlab/v0/install.sh") {
const expectedUrls = [
"https://ssd.mathworks.com/supportfiles/ci/matlab-deps/v0/install.sh",
"https://ssd.mathworks.com/supportfiles/ci/ephemeral-matlab/v0/install.sh",
];
if (!expectedUrls.includes(url)) {

Perhaps something like this to remove the long if-statement?

@mcafaro mcafaro merged commit 863ea2b into master Aug 14, 2020
@mcafaro mcafaro deleted the matlab-deps branch August 14, 2020 15:31
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