Skip to content

Instantly share code, notes, and snippets.

@ericelliott
Created October 29, 2016 20:46
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ericelliott/070750b292583ac8849d0de93f68f7ce to your computer and use it in GitHub Desktop.
Save ericelliott/070750b292583ac8849d0de93f68f7ce to your computer and use it in GitHub Desktop.
Using Yarn on Travis-CI
language: node_js
node_js:
- "6"
env:
- CXX=g++-4.8
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
before_install:
- npm install -g yarn --cache-min 999999999
install:
- yarn
@balupton
Copy link

balupton commented Nov 4, 2016

Is it necessary for the env and addons stuff? What exactly are they needed for?

@riyadhalnur
Copy link

Exact same question as @balupton. g++ is required for building native deps. mostly 😕

@paulfalgout
Copy link

For anyone looking into this now:

Using npm to install yarn has blown up everything. yarnpkg/yarn#2915

https://yarnpkg.com/en/docs/install-ci#travis-tab

@Richienb
Copy link

Richienb commented Dec 1, 2019

Nowadays, Yarn comes preinstalled when using language: node_js.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment