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

Let Travis lint using node make lint, instead of a hard-coded command #6733

Merged
merged 1 commit into from
Dec 10, 2015
Merged

Let Travis lint using node make lint, instead of a hard-coded command #6733

merged 1 commit into from
Dec 10, 2015

Conversation

Snuffleupagus
Copy link
Collaborator

Re: #6683 (comment).

This seems to work fine locally when running npm test, let's see if Travis agrees.

@yurydelendik
Copy link
Contributor

Please notice that in umd patch I changed make.js to return an error code in case of failure. You can move that in this PR.

@timvandermeij
Copy link
Contributor

This looks good to me. I'm not sure exactly why it is still a work in progress, i.e., what else needs to be done? I'm also fine with doing the error code handling in another PR as it seems a bit unrelated here, though I might be mistaken.

@yurydelendik
Copy link
Contributor

Error code is what let Travis know if linting failed. Can you try commit with failed js file as a test ?

@timvandermeij
Copy link
Contributor

I see, the jshint command that we have right now returns an error code. In that case, yes, we probably need to use error codes too in this commit. Thanks for the clarification!

@Snuffleupagus
Copy link
Collaborator Author

Error code is what let Travis know if linting failed. Can you try commit with failed js file as a test ?

I did try that previously, and it seemed to work as expected: https://travis-ci.org/mozilla/pdf.js/builds/95454119. But I suppose it can't hurt to do this more explicitly, so I'll push an updated patch!

@Snuffleupagus
Copy link
Collaborator Author

@Snuffleupagus
Copy link
Collaborator Author

Let's also check that this doesn't mess with the lint command on e.g. the bots.

/botio lint

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

Command cmd_lint from @Snuffleupagus received. Current queue size: 0

Live output at: http://107.22.172.223:8877/d2b76322b2df932/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux)


Received

Command cmd_lint from @Snuffleupagus received. Current queue size: 0

Live output at: http://107.21.233.14:8877/723ae864bf7e808/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux)


Success

Full output at http://107.21.233.14:8877/723ae864bf7e808/output.txt

Total script time: 0.93 mins

  • Lint: Passed

@pdfjsbot
Copy link

From: Bot.io (Windows)


Success

Full output at http://107.22.172.223:8877/d2b76322b2df932/output.txt

Total script time: 1.37 mins

  • Lint: Passed

timvandermeij added a commit that referenced this pull request Dec 10, 2015
Let Travis lint using `node make lint`, instead of a hard-coded command
@timvandermeij timvandermeij merged commit c6e9be8 into mozilla:master Dec 10, 2015
@timvandermeij
Copy link
Contributor

Nice, thank you!

@Snuffleupagus Snuffleupagus deleted the travis-lint-with-make branch December 10, 2015 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants