Merge pull request #4903 from tgxworld/use_yarn_on_travis

Switch to yarn for our travis build.
This commit is contained in:
Guo Xiang Tan 2017-06-07 11:20:09 +09:00 committed by GitHub
commit 0f214ed43f

View File

@ -36,6 +36,7 @@ sudo: required
dist: trusty
cache:
yarn: true
directories:
- vendor/bundle
@ -46,7 +47,7 @@ before_install:
- git clone --depth=1 https://github.com/discourse/discourse-cakeday.git plugins/discourse-cakeday
- git clone --depth=1 https://github.com/discourse/discourse-canned-replies.git plugins/discourse-canned-replies
- git clone --depth=1 https://github.com/discourse/discourse-slack-official.git plugins/discourse-slack-official
- npm i -g eslint babel-eslint
- yarn global add eslint babel-eslint
- eslint app/assets/javascripts
- eslint --ext .es6 app/assets/javascripts
- eslint --ext .es6 test/javascripts