Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Using multiple Gemfiles seems to be a better way to run Travis CI bui…

…lds against multiple version of test-unit.

It also means we can switch on the debug mocha option without generating a bunch of unnecessary CI builds.
  • Loading branch information...
commit 455f4eea07f238bde0680b39de874f665c2a6818 1 parent 5ac5136
@floehopper authored
View
8 .travis.yml
@@ -5,8 +5,10 @@ notifications:
rvm:
- 1.8.6
- 1.8.7
+gemfile:
+ - Gemfile
+ - Gemfile.test-unit.latest
+ - Gemfile.test-unit.2.2.0
env:
- - TEST_UNIT_VERSION=
- - TEST_UNIT_VERSION="2.2.0"
- - TEST_UNIT_VERSION="latest"
+ - MOCHA_OPTIONS=debug
View
11 Gemfile
@@ -1,12 +1,3 @@
source :rubygems
-gemspec
-
-test_unit_version = ENV["TEST_UNIT_VERSION"]
-group :development do
- if "latest" == test_unit_version
- gem "test-unit"
- elsif !test_unit_version.nil? && !test_unit_version.empty?
- gem "test-unit", test_unit_version
- end
-end
+gemspec
View
7 Gemfile.test-unit.2.2.0
@@ -0,0 +1,7 @@
+source :rubygems
+
+gemspec
+
+group :development do
+ gem "test-unit", "2.2.0"
+end
View
7 Gemfile.test-unit.latest
@@ -0,0 +1,7 @@
+source :rubygems
+
+gemspec
+
+group :development do
+ gem "test-unit"
+end
Please sign in to comment.
Something went wrong with that request. Please try again.