diff --git a/.travis.yml b/.travis.yml index 4a9baa5500..450c0fd552 100644 --- a/.travis.yml +++ b/.travis.yml @@ -67,8 +67,7 @@ before_install: install: - bash -c "if [ '$RAILS_MASTER' == '1' ]; then bundle update --retry=3 --jobs=3 arel rails seed-fu > /dev/null; fi" - bash -c "if [ '$RAILS_MASTER' == '0' ]; then bundle install --without development --deployment --retry=3 --jobs=3 > /dev/null; fi" - - bash -c "if [ '$RUN_LINT' == '1' ]; then yarn global add eslint babel-eslint prettier > /dev/null; fi" - - bash -c "if [ '$QUNIT_RUN' == '1' ]; then yarn install --dev > /dev/null; fi" + - bash -c "if [ '$QUNIT_RUN' == '1' ] || [ '$RUN_LINT' == '1' ]; then yarn install --dev > /dev/null; fi" - bash -c "if [ '$RUN_LINT' != '1' ]; then bundle exec rake db:create db:migrate > /dev/null; fi" script: @@ -77,11 +76,11 @@ script: if [ '$RUN_LINT' == '1' ]; then bundle exec rubocop --parallel && \ bundle exec danger && \ - eslint --ext .es6 app/assets/javascripts && \ - eslint --ext .es6 test/javascripts && \ - eslint --ext .es6 plugins/**/assets/javascripts && \ - eslint --ext .es6 plugins/**/test/javascripts && \ - eslint app/assets/javascripts test/javascripts + yarn exec eslint --ext .es6 app/assets/javascripts && \ + yarn exec eslint --ext .es6 test/javascripts && \ + yarn exec eslint --ext .es6 plugins/**/assets/javascripts && \ + yarn exec eslint --ext .es6 plugins/**/test/javascripts && \ + yarn exec eslint app/assets/javascripts test/javascripts else if [ '$QUNIT_RUN' == '1' ]; then bundle exec rake qunit:test['500000'] && \