mirror of
https://github.com/discourse/discourse.git
synced 2025-06-10 16:43:41 +08:00
Move db migrate on Travis into install
step.
This will allow us to collapse the migration logs.
This commit is contained in:
@ -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 [ '$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 [ '$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 [ '$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:
|
script:
|
||||||
- |
|
- |
|
||||||
@ -73,8 +74,6 @@ script:
|
|||||||
eslint --ext .es6 plugins/**/test/javascripts && \
|
eslint --ext .es6 plugins/**/test/javascripts && \
|
||||||
eslint app/assets/javascripts test/javascripts
|
eslint app/assets/javascripts test/javascripts
|
||||||
else
|
else
|
||||||
bundle exec rake db:create db:migrate
|
|
||||||
|
|
||||||
if [ '$QUNIT_RUN' == '1' ]; then
|
if [ '$QUNIT_RUN' == '1' ]; then
|
||||||
bundle exec rake qunit:test['500000'] && \
|
bundle exec rake qunit:test['500000'] && \
|
||||||
bundle exec rake plugin:qunit
|
bundle exec rake plugin:qunit
|
||||||
|
Reference in New Issue
Block a user