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

Use Yarn package/installer on Travis/AppVeyor/CircleCI rather than npm #1117

Merged
merged 1 commit into from
Oct 16, 2016

Conversation

Daniel15
Copy link
Member

Summary
On Linux:

  • Install Yarn from Ubuntu package rather than npm
  • Moved installation of Yarn to bootstrap-env-ubuntu.sh script. The more of the environment configuration we have in here, the better (as it'll make it easier to have Docker/Vagrant images for Yarn dev/build in the future)
  • Use Travis and CircleCI's built-in method to choose Node.js v6 rather than nvm

On Windows (AppVeyor):

  • Install Yarn from Chocolatey package

Test plan
Will check on Travis/AppVeyor/CircleCI once PR is submitted and the build is kicked off

@Daniel15 Daniel15 self-assigned this Oct 16, 2016
@Daniel15 Daniel15 force-pushed the better-ci branch 2 times, most recently from d4f38a9 to 005958b Compare October 16, 2016 04:02
node_js:
- "6"

sudo: required # Until Yarn repo is added to apt-source-whitelist

addons:
Copy link
Contributor

@jdalton jdalton Oct 16, 2016

Choose a reason for hiding this comment

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

Why not wait until you get the whitelist pass to change things over?
Won't dropping sudo make the CI runs slower?

Related to #1082.

Copy link
Member Author

Choose a reason for hiding this comment

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

The whitelist seems to take a long time to get things into it, there's 225 issues and 40 pull requests right now.

CircleCI is much faster than Travis and allows sudo by default, so we're mostly relying on Circle these days instead of Travis. Travis' container infra is more limited than Circle's, Circle even lets you SSH into the build boxes to diagnose build problems.

Copy link
Member Author

Choose a reason for hiding this comment

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

@jdalton: I don't see a statistically significant increase in build time, Travis builds times are all over the place. Here's a few recent builds:

Copy link
Contributor

@jdalton jdalton Oct 16, 2016

Choose a reason for hiding this comment

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

Ya, just checked myself. Neat.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants