From 1fe6fd759fbd20b6ed7a00efeb13cc737d70d1aa Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Wed, 30 May 2018 12:30:26 +0800 Subject: [PATCH] Move db migrate on Travis into `install` step. This will allow us to collapse the migration logs. --- .travis.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0b82e606623..b7a56434455 100644 --- a/.travis.yml +++ b/.travis.yml @@ -61,6 +61,7 @@ install: - 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 > /dev/null; fi" - bash -c "if [ '$QUNIT_RUN' == '1' ]; then yarn install --dev > /dev/null; fi" + - bash -c "if [ -z '$RUN_LINT' ]; bundle exec rake db:create db:migrate; fi" script: - | @@ -73,8 +74,6 @@ script: eslint --ext .es6 plugins/**/test/javascripts && \ eslint app/assets/javascripts test/javascripts else - bundle exec rake db:create db:migrate - if [ '$QUNIT_RUN' == '1' ]; then bundle exec rake qunit:test['500000'] && \ bundle exec rake plugin:qunit