Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added ci file and updated Rakefile

  • Loading branch information...
commit bfb7b09370323247e77ed6b8cf5fd33847d58814 1 parent 6205b7d
@scottdavis scottdavis authored
Showing with 41 additions and 1 deletion.
  1. +8 −0 .travis.yml
  2. +32 −1 Rakefile
  3. +1 −0  test/test_helper.rb
View
8 .travis.yml
@@ -0,0 +1,8 @@
+rvm:
+ - 1.8.7
+ - 1.9.2
+ - 1.9.3
+ - jruby
+ - rbx
+ - ree
+script: "bundle exec rake appraisal:install test"
View
33 Rakefile
@@ -1,3 +1,34 @@
#!/usr/bin/env rake
+require 'rubygems'
+require 'bundler'
+Bundler.setup
+require 'rake/dsl_definition' rescue nil
+
require "bundler/gem_tasks"
-require 'appraisal'
+require 'appraisal'
+require 'compass'
+
+# ----- Default: Testing ------
+
+task :default => [:test, :features]
+
+require 'rake/testtask'
+require 'fileutils'
+
+Rake::TestTask.new :test do |t|
+ t.libs << 'lib'
+ t.libs << 'test'
+ test_files = FileList['test/**/*_test.rb']
+ test_files.exclude('test/rails/*', 'test/haml/*')
+ t.test_files = test_files
+ t.verbose = true
+end
+
+Rake::TestTask.new :units do |t|
+ t.libs << 'lib'
+ t.libs << 'test'
+ test_files = FileList['test/units/**/*_test.rb']
+ test_files.exclude('test/rails/*', 'test/haml/*')
+ t.test_files = test_files
+ t.verbose = true
+end
View
1  test/test_helper.rb
@@ -1,3 +1,4 @@
+require 'test/unit'
require 'compass-rails'
require 'rainbow'
module CompassRails
Please sign in to comment.
Something went wrong with that request. Please try again.