Skip to content

Commit

Permalink
Test engines parallely with Travis
Browse files Browse the repository at this point in the history
Closes #2267
  • Loading branch information
Trung Lê authored and radar committed Dec 3, 2012
1 parent 1b9089a commit a60729e
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 13 deletions.
30 changes: 17 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
before_script:
- "sh -e /etc/init.d/xvfb start"
- "bundle exec rake test_app"
- 'sh -e /etc/init.d/xvfb start'
- 'export DISPLAY=:99.0'
bundler_args: --without development production --quiet
env:
- DB=sqlite
- DB=mysql
- DB=postgres
- GEM='api:sqlite'
- GEM='api:mysql'
- GEM='api:postgres'
- GEM='core:sqlite'
- GEM='core:mysql'
- GEM='core:postgres'
- GEM='dash:sqlite'
- GEM='dash:mysql'
- GEM='dash:postgres'
- GEM='promo:sqlite'
- GEM='promo:mysql'
- GEM='promo:postgres'
script:
- "export DISPLAY=:99.0"
- "alias set_gemfile='export BUNDLE_GEMFILE=\"`pwd`/Gemfile\"'"
- "cd api; set_gemfile; bundle install --quiet; bundle exec rspec spec"
- "cd ../core; set_gemfile; bundle install --quiet; bundle exec rspec spec"
- "cd ../dash; set_gemfile; bundle install --quiet; bundle exec rspec spec"
- "cd ../promo; set_gemfile; bundle install --quiet; bundle exec rspec spec"

- 'ci/travis.sh'
notifications:
email:
- [email protected]
Expand All @@ -22,4 +26,4 @@ notifications:
channels:
- "irc.freenode.org#spree"
rvm:
- 1.9.3
- 1.9.3
9 changes: 9 additions & 0 deletions ci/travis.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env bash
vars=(${GEM//:/ })
ENGINE=${vars[0]}
export DB=${vars[1]}
cd ${ENGINE}
bundle exec rake test_app
export BUNDLE_GEMFILE="`pwd`/Gemfile"
bundle install --quiet
bundle exec rspec spec

0 comments on commit a60729e

Please sign in to comment.