Skip to content

Instantly share code, notes, and snippets.

@ericelliott
Created October 29, 2016 20:46
Show Gist options
  • 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
@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