Permalink
Browse files

Further improvements for CI, no more bundle!

  • Loading branch information...
1 parent 8a8b6e2 commit e5ca5c3abeb8c8ea8bc6a33bc96fc3d802585f5a @raggi raggi committed Dec 27, 2011
Showing with 16 additions and 2 deletions.
  1. +4 −0 .travis.yml
  2. +0 −2 Gemfile
  3. +12 −0 Rakefile
View
@@ -1,4 +1,8 @@
before_install: sudo apt-get install lighttpd libfcgi-dev libmemcache-dev memcached
+install:
+ - gem env version | grep '^\(2\|1.\(8\|9\|[0-9][0-9]\)\)' || gem update --system
+ - gem install --conservative rake
+ - rake deps
script: rake fulltest
rvm:
- 1.8.7
View
@@ -1,2 +0,0 @@
-source :rubygems
-gemspec
View
@@ -3,6 +3,18 @@
desc "Run all the tests"
task :default => [:test]
+desc "Install gem dependencies"
+task :deps do
+ require 'rubygems'
+ spec = Gem::Specification.load('rack.gemspec')
+ spec.dependencies.each do |dep|
+ reqs = dep.requirements_list
+ reqs = (["-v"] * reqs.size).zip(reqs).flatten
+ # Use system over sh, because we want to ignore errors!
+ system "gem", "install", '--conservative', dep.name, *reqs
+ end
+end
+
desc "Make an archive as .tar.gz"
task :dist => [:chmod, :changelog, :rdoc, "SPEC"] do
sh "git archive --format=tar --prefix=#{release}/ HEAD^{tree} >#{release}.tar"

0 comments on commit e5ca5c3

Please sign in to comment.