Skip to content

Instantly share code, notes, and snippets.

@1syo
Last active August 29, 2015 14:16
Show Gist options
  • Save 1syo/06e211b9bf12acf3b3c6 to your computer and use it in GitHub Desktop.
Save 1syo/06e211b9bf12acf3b3c6 to your computer and use it in GitHub Desktop.
.travis.yml
# 前略
env:
- "DB=mysql NUM_GROUPS=10 GROUP=1,2"
- "DB=mysql NUM_GROUPS=10 GROUP=3,4"
- "DB=mysql NUM_GROUPS=10 GROUP=5,6"
- "DB=mysql NUM_GROUPS=10 GROUP=7,8"
- "DB=mysql NUM_GROUPS=10 GROUP=9,10"
before_install: gem install bundler --pre
before_script:
# 中略
- bundle exec rake parallel:create[$NUM_GROUPS]
- bundle exec rake parallel:load_schema[$NUM_GROUPS]
# 後略
# 前略
env:
- "DB=mysql NUM_GROUPS=4 GROUP=1"
- "DB=mysql NUM_GROUPS=4 GROUP=2"
- "DB=mysql NUM_GROUPS=4 GROUP=3"
- "DB=mysql NUM_GROUPS=4 GROUP=4"
before_install: gem install bundler --pre
before_script:
# 中略
- bundle exec rake db:create
- bundle exec rake db:schema:load
# 後略
@1syo
Copy link
Author

1syo commented Mar 11, 2015

--only-group 1,2 このオプションの指定方法は古いparallel_testsでは利用できなかった

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment