Skip to content
This repository was archived by the owner on Jun 13, 2019. It is now read-only.

Conversation

@hansmbakker
Copy link
Contributor

This adds build options for OSX; I had to find a way to fill SYS_VERSION from node.js.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 87.083% when pulling d0cce69 on wind-rider:osx-build into 8d65773 on otcshare:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 87.083% when pulling d0cce69 on wind-rider:osx-build into 8d65773 on otcshare:master.

@hansmbakker hansmbakker mentioned this pull request Feb 11, 2017
Copy link

@gabrielschulhof gabrielschulhof left a comment

Choose a reason for hiding this comment

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

@Wind-rider looks good overall (aside from the few comments) and I assume this makes it build for you on your version of OS X.

Do you think you could also try to add osx_image: xcode8.2 below all instances of os: osx in file .travis.yml? The Travis documentation claims that that'll result in the OSX test suite being run on OS X 10.12.

var os = require( "os" );

function run( command, arguments, options ) {
function run( command, args, options ) {

Choose a reason for hiding this comment

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

Please use full words for variable names. arguments was fine.

Copy link
Contributor Author

@hansmbakker hansmbakker Feb 11, 2017

Choose a reason for hiding this comment

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

eslinter or jshint warned that arguments is a reserved word, that's why I replaced it. Do you have any suggestions?

Choose a reason for hiding this comment

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

Weird! I never got any complaints, but, of course, you're right. Let's keep args.

"x64": "x86_64",
"arm": "arm"
}
},

Choose a reason for hiding this comment

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

Please reduce the indentation such that the brace aligns with the double quote before the word "linux" above.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done, I'll commit it after getting feedback on the other parts.

localArch = userAgentParts[ 3 ];

targetArch =
archMap[ platform ] ? archMap[ platform ][ localArch ] : null;

Choose a reason for hiding this comment

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

Declaring variable localArch is superfluous if you're only going to use it once. Just put userAgentParts[ 3 ] directly into the brackets and remove the variable localArch entirely.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I did that on purpose for code readability, so that everybody understands what is happening there. Are you very strongly in favor of using archMap[ platform ][ serAgentParts[ 3 ] ]? It doesn't have my favor.

Choose a reason for hiding this comment

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

Alright, I guess. Let's keep it.


var binariesSource, installWinHeaders, architecture, tinycborPath;
var binariesSource, installWinHeaders, tinycborPath,
userAgentParts, platform, localArch, targetArch, sysVersion;

Choose a reason for hiding this comment

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

Please rename variable targetArch to architecture, as it was.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I found targetArch(itecture) clearer since it matches the parameter for Scons. Are you're sure about this?

Choose a reason for hiding this comment

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

Weeeell, OK, I guess.

@hansmbakker
Copy link
Contributor Author

@gabrielschulhof I modified .travis.yml, I'd like to hear your opinion about the other parts before committing the other file.

var os = require( "os" );

function run( command, arguments, options ) {
function run( command, args, options ) {

Choose a reason for hiding this comment

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

Weird! I never got any complaints, but, of course, you're right. Let's keep args.


var binariesSource, installWinHeaders, architecture, tinycborPath;
var binariesSource, installWinHeaders, tinycborPath,
userAgentParts, platform, localArch, targetArch, sysVersion;

Choose a reason for hiding this comment

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

Weeeell, OK, I guess.

localArch = userAgentParts[ 3 ];

targetArch =
archMap[ platform ] ? archMap[ platform ][ localArch ] : null;

Choose a reason for hiding this comment

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

Alright, I guess. Let's keep it.

@gabrielschulhof
Copy link

Looks like OS X 10.12 with XCode 8.2 works. Nice!

@coveralls
Copy link

Coverage Status

Coverage remained the same at 87.083% when pulling 8528592 on wind-rider:osx-build into 8d65773 on otcshare:master.

@hansmbakker
Copy link
Contributor Author

@gabrielschulhof Thank you for your quick replies! I fixed the indentation.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 87.083% when pulling cb9481a on wind-rider:osx-build into 8d65773 on otcshare:master.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants