Skip to content

Commit

Permalink
rewrite Travis test script
Browse files Browse the repository at this point in the history
  • Loading branch information
mislav committed Feb 5, 2013
1 parent 0204604 commit 9b8f11d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 30 deletions.
6 changes: 5 additions & 1 deletion .travis.yml
@@ -1,5 +1,9 @@
script: spec/ci.rb
bundler_args: "--standalone --binstubs"
script: script/test_all
services: mongodb
before_script:
- mysql -e 'create database will_paginate;'
- psql -c 'create database will_paginate;' -U postgres
rvm:
- 1.8.7
- 1.9.2
Expand Down
12 changes: 12 additions & 0 deletions script/test_all
@@ -0,0 +1,12 @@
#!/usr/bin/env bash
status=0
export PATH="${PWD}/bin:$PATH"

for db in sqlite3 mysql mysql2 postgres; do
if ! [[ $db = "mysql2" && $BUNDLE_GEMFILE =~ "rails3.0" ]]; then
printf "\e[1;33m[DB] ${db}\e[m\n"
DB=$db rake || status=1
fi
done

exit $status
29 changes: 0 additions & 29 deletions spec/ci.rb

This file was deleted.

0 comments on commit 9b8f11d

Please sign in to comment.