File tree Expand file tree Collapse file tree 3 files changed +34
-0
lines changed Expand file tree Collapse file tree 3 files changed +34
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,27 @@ gemfile:
11
11
- test/gemfiles/Gemfile.rails-4.0.x
12
12
- test/gemfiles/Gemfile.rails-4.1.x
13
13
14
+ env :
15
+ - LEGACY=true
16
+ - LEGACY=false
17
+
18
+ matrix :
19
+ exclude :
20
+ - gemfile : Gemfile
21
+ env : LEGACY=true
22
+ - gemfile : test/gemfiles/Gemfile.rails-4.1.x
23
+ env : LEGACY=true
24
+ - gemfile : test/gemfiles/Gemfile.rails-4.0.x
25
+ env : LEGACY=true
26
+ - gemfile : test/gemfiles/Gemfile.rails-3.0.x
27
+ env : LEGACY=false
28
+ - gemfile : test/gemfiles/Gemfile.rails-3.1.x
29
+ env : LEGACY=false
30
+ - gemfile : test/gemfiles/Gemfile.rails-3.2.x
31
+ env : LEGACY=false
32
+
33
+ script : ./script/test
34
+
14
35
notifications :
15
36
email : false
16
37
campfire :
Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ require 'bundler/gem_tasks'
4
4
5
5
task :default => :test
6
6
7
+ task :test_legacy do
8
+ exec "testrb test/test_*.rb"
9
+ end
10
+
7
11
Rake ::TestTask . new ( :test ) do |t |
8
12
t . libs << 'lib'
9
13
t . pattern = 'test/test_*.rb'
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -ev
4
+
5
+ if [[ " ${LEGACY} " != " false" ]]; then
6
+ bundle exec rake test_legacy
7
+ else
8
+ bundle exec rake test
9
+ fi
You can’t perform that action at this time.
0 commit comments