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

Build: Turnoff CI branch build (fixes #8804) #8873

Merged
merged 4 commits into from Jul 7, 2017
Merged

Build: Turnoff CI branch build (fixes #8804) #8873

merged 4 commits into from Jul 7, 2017

Conversation

gyandeeps
Copy link
Member

What is the purpose of this pull request? (put an "X" next to item)

[ ] Documentation update
[ ] Bug fix (template)
[ ] New rule (template)
[ ] Changes an existing rule (template)
[ ] Add autofixing to a rule
[ ] Add a CLI option
[ ] Add something to the core
[ x ] Other, please explain:

What changes did you make? (Give an overview)

  • Turnoff branch build on all CI
  • Run docs only if the master branch is building

Is there anything you'd like reviewers to focus on?

@gyandeeps gyandeeps added build This change relates to ESLint's build process infrastructure Relates to the tools used in the ESLint development process evaluating The team will evaluate this issue to decide whether it meets the criteria for inclusion labels Jul 3, 2017
.travis.yml Outdated
# Run npm docs only when its the master branch build
script:
- "npm test"
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" && "$TRAVIS_BRANCH" = "master" ]; then npm run docs; fi'
Copy link

Choose a reason for hiding this comment

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

I'd add $node_js check to not run docs on each node_js version.
Same could be done for linting, btw.

script:
  - npm test
  - if [ "$TRAVIS_PULL_REQUEST" = "false" && "$TRAVIS_BRANCH" = "master" && "$node_js" = "8" ] ...

Copy link
Member Author

Choose a reason for hiding this comment

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

very cool. I will add this and also make coverall to run only for node 8 as well.

@eslintbot
Copy link

LGTM

@eslint eslint deleted a comment from eslintbot Jul 3, 2017
@eslint eslint deleted a comment from eslintbot Jul 3, 2017
.travis.yml Outdated
# Run npm docs only when its the master branch build and node 8
script:
- "npm test"
- 'if [[ "$TRAVIS_PULL_REQUEST" = "false" && "$TRAVIS_BRANCH" = "master" && "$node_js" = "8" ]]; then npm run docs; fi'
Copy link
Member

Choose a reason for hiding this comment

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

What's the point of running npm run docs on master? I had assumed that we were running npm run docs to make sure the docs can be built without errors, but if we're waiting until the docs are on master then it would already be too late if they've broken.

Copy link
Member

Choose a reason for hiding this comment

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

Agree. Our jsdoc generation is not even documented anywhere. To tell the truth, I've been working on ESLint since week 3, and I have never generated or even looked at our jsDoc output, so I'm not sure we should be re-running jsdoc generation on every build.

Copy link
Member Author

Choose a reason for hiding this comment

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

Are you guys suggesting to actually remove the generation of docs from all the build?

Copy link
Member

Choose a reason for hiding this comment

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

I wouldn't mind that -- I've never personally used the autogenerated docs.

Copy link
Member

Choose a reason for hiding this comment

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

@gyandeeps Yes, I don't know of anyone consuming them.

@gyandeeps gyandeeps added accepted There is consensus among the team that this change meets the criteria for inclusion and removed evaluating The team will evaluate this issue to decide whether it meets the criteria for inclusion labels Jul 5, 2017
@eslintbot
Copy link

LGTM

.travis.yml Outdated
@@ -14,7 +14,6 @@ branches:
# Run npm docs only when its the master branch build and node 8
Copy link
Member

Choose a reason for hiding this comment

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

Left-over comment.

@eslintbot
Copy link

LGTM

@eslint-deprecated eslint-deprecated bot locked and limited conversation to collaborators Feb 6, 2018
@eslint-deprecated eslint-deprecated bot added the archived due to age This issue has been archived; please open a new issue for any further discussion label Feb 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
accepted There is consensus among the team that this change meets the criteria for inclusion archived due to age This issue has been archived; please open a new issue for any further discussion build This change relates to ESLint's build process infrastructure Relates to the tools used in the ESLint development process
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants