schema.rb を廃止して structure.sql に変更、更に parallel_tests を導入した場合の .travis.yml。(抜粋) structure.sql を直接あててるのは prepare だとなぜか入らないため。(詳しく追ってない)
Last active
August 29, 2015 14:00
-
-
Save skyriser/11277390 to your computer and use it in GitHub Desktop.
structure.sql typed Rails project test with Travis CI powered by Parallel Tests (RSpec)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
language: ruby | |
cache: bundler | |
bundler_args: --without development --path vendor/bundle | |
before_install: | |
- gem install bundler --version "~> 1.5.3" | |
- bundle --version | |
before_script: | |
- bundle exec rake parallel:create[4] | |
- sed -i -e '1i SET FOREIGN_KEY_CHECKS = 0;' db/structure.sql | |
- mysql -uroot PROJECT_test < db/structure.sql | |
- mysql -uroot PROJECT_test2 < db/structure.sql | |
- mysql -uroot PROJECT_test3 < db/structure.sql | |
- mysql -uroot PROJECT_test4 < db/structure.sql | |
script: | |
- bundle exec rake parallel:spec[4] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
bundler のバージョン指定がメッチャ古かったのでなおした。