Skip to content

Conversation

@endiliey
Copy link
Contributor

@endiliey endiliey commented Jul 2, 2018

Summary

Current CircleCI integration is such that it will install docusaurus, generate english file for strings & then install jre -> install crowdin -> upload crowdin docs -> download crowdin docs -> try to deploy website regardless whether it is a pull request or not.

I think it is much better to skip deploying the website if it is just a pull request & only deploy when it has been pushed to master.

Another change is addition of large resource class for website deploy based on #6567 (comment)

Test plan

Look at circleci jobs of test-deploy-website for this PR.

@endiliey endiliey changed the title Deploy website using large resource class & only for master branch [WIP] Better CircleCI config for Jest website Jul 2, 2018
@SimenB SimenB requested a review from thymikee July 2, 2018 08:26
@codecov-io
Copy link

codecov-io commented Jul 2, 2018

Codecov Report

Merging #6590 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #6590   +/-   ##
=======================================
  Coverage   63.73%   63.73%           
=======================================
  Files         235      235           
  Lines        8931     8931           
  Branches        4        3    -1     
=======================================
  Hits         5692     5692           
  Misses       3238     3238           
  Partials        1        1

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1a2c277...d204b4b. Read the comment docs.

@SimenB
Copy link
Member

SimenB commented Jul 2, 2018

Is it possible to fix the gh-pages branch to not be circle v1 as well? Not sure if related to this PR, though.

image

https://circleci.com/gh/facebook/jest/27494

@endiliey endiliey changed the title [WIP] Better CircleCI config for Jest website Skip deploy website if it is a pull request Jul 2, 2018
working_directory: ~/jest
docker:
- image: circleci/node:8
resource_class: large
Copy link
Member

Choose a reason for hiding this comment

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

We can bump our test workers from -w=2 to -w=4 in package.json

Copy link
Member

Choose a reason for hiding this comment

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

That in particular is just website build, isn't it? Might be worth doing for the test runs of course

Copy link
Member

@rickhanlonii rickhanlonii left a comment

Choose a reason for hiding this comment

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

LGTM, would recommend bumping the number of workers we use in tests as well 👍

@SimenB SimenB merged commit c0bdb55 into jestjs:master Jul 3, 2018
@endiliey endiliey deleted the circleci branch July 4, 2018 17:30
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants