-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Travis: enable testing of node v4 + --harmony #501
Conversation
Looks a bit hacky in my opinion.. Not sure what the rest thinks |
@@ -18,9 +19,9 @@ before_script: | |||
- sleep 5 | |||
script: | |||
- npm run lint | |||
- npm run unit | |||
- if [[ $(node -v) =~ ^v4.* ]]; then npm run unit:harmony; else npm run unit; fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Curious if we could do like a export isNode4=( $(node -v) =~ ^v4.*)
could then do [[ isNode4 ]] && npm run unit:harmony || npm run unit
would feel a little cleaner. :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmmm actually....
i'm seeing a pattern here using matrix
that seems a bit smarter: arrizalamin/js-function-reflector/.travis.yml (or this)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That sounds good, except for the && and ||. I've personally refrained from using them because if npm run unit:harmony fails then npm run unit will be run, which is not what we want.
Updated |
#475