Skip to content

Commit 9835ce1

Browse files
committed
💚 Fix eslint install on Travis.ci
1 parent 5d06002 commit 9835ce1

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.travis.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,22 @@ language: node_js
22

33
node_js:
44
- 6
5-
- 4
65

76
before_install:
8-
- yarn global eslint
7+
# Repo for newer Node.js versions
8+
- curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
9+
# Repo for Yarn
10+
- sudo apt-key adv --keyserver pgp.mit.edu --recv D101F7899D41F3C3
11+
- echo "deb http://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
12+
- sudo apt-get update -qq
13+
- sudo apt-get install -y -qq yarn
14+
- npm i -g eslint
915

1016
install:
1117
- yarn install --production
1218

1319
cache:
20+
yarn: true
1421
directories:
1522
- node_modules
1623

0 commit comments

Comments
 (0)