Skip to content
Browse files

Change build order to optimize performance

  • Loading branch information...
1 parent beece9e commit bbec534f666ff8cc762dc5877b54e2ad899d84e6 @sferik committed Oct 10, 2012
Showing with 6 additions and 14 deletions.
  1. +4 −12 .travis.yml
  2. +2 −2 lib/tasks/rails_admin.rake
View
16 .travis.yml
@@ -1,27 +1,19 @@
bundler_args: "--without debug"
rvm:
- - 1.9.3
- jruby-19mode
- - rbx-19mode
+ - 1.9.3
env:
+ - "CI_ORM=mongoid"
- "CI_ORM=active_record CI_DB_ADAPTER=sqlite3"
- - "CI_ORM=active_record CI_DB_ADAPTER=postgresql CI_DB_USERNAME=postgres"
- "CI_ORM=active_record CI_DB_ADAPTER=mysql"
- - "CI_ORM=mongoid"
+ - "CI_ORM=active_record CI_DB_ADAPTER=postgresql CI_DB_USERNAME=postgres"
language: ruby
matrix:
exclude:
- rvm: jruby-19mode
- env: "CI_ORM=active_record CI_DB_ADAPTER=postgresql CI_DB_USERNAME=postgres"
- - rvm: jruby-19mode
env: "CI_ORM=active_record CI_DB_ADAPTER=mysql"
- - rvm: rbx-19mode
- env: "CI_ORM=active_record CI_DB_ADAPTER=postgresql CI_DB_USERNAME=postgres"
- - rvm: rbx-19mode
- env: "CI_ORM=active_record CI_DB_ADAPTER=mysql"
- allow_failures:
- rvm: jruby-19mode
- - rvm: rbx-19mode
+ env: "CI_ORM=active_record CI_DB_ADAPTER=postgresql CI_DB_USERNAME=postgres"
notifications:
irc: "irc.freenode.org#railsadmin"
script: spec/ci.sh
View
4 lib/tasks/rails_admin.rake
@@ -6,7 +6,7 @@ namespace :rails_admin do
puts "[RailsAdmin] RailsAdmin initialization disabled by default. Pass SKIP_RAILS_ADMIN_INITIALIZER=false if you need it."
end
end
-
+
desc "Install rails_admin"
task :install do
system 'rails g rails_admin:install'
@@ -16,7 +16,7 @@ namespace :rails_admin do
task :uninstall do
system 'rails g rails_admin:uninstall'
end
-
+
desc "CI env for Travis"
task :prepare_ci_env do
ENV['SKIP_RAILS_ADMIN_INITIALIZER'] = 'true'

0 comments on commit bbec534

Please sign in to comment.
Something went wrong with that request. Please try again.