From f860ef99db1517584f2266e161cc57bb54a5f13b Mon Sep 17 00:00:00 2001 From: Kushagra Gour Date: Tue, 31 Jul 2018 01:51:28 +0530 Subject: [PATCH] travis.yml: switch to yarn --- .travis.yml | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/.travis.yml b/.travis.yml index e5e4a99..1946b37 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,16 +2,12 @@ language: node_js node_js: - '10' install: - - npm i -g npm@latest - - npm install -g eslint - - npm install -g babel-eslint - - npm install -g eslint-plugin-react - - npm install -g eslint-plugin-mocha - - npm install -g eslint-config-synacor + - yarn add global eslint + - yarn add global babel-eslint + - yarn add global eslint-plugin-react + - yarn add global eslint-plugin-mocha + - yarn add global eslint-config-synacor script: - - npm run lint - - npm ci - - npm run test -cache: - directories: - - '$HOME/.npm' + - yarn run lint + - yarn run test +cache: yarn