Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Further improvements for CI, no more bundle!

  • Loading branch information...
commit e5ca5c3abeb8c8ea8bc6a33bc96fc3d802585f5a 1 parent 8a8b6e2
@raggi raggi authored
Showing with 16 additions and 2 deletions.
  1. +4 −0 .travis.yml
  2. +0 −2  Gemfile
  3. +12 −0 Rakefile
View
4 .travis.yml
@@ -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
2  Gemfile
@@ -1,2 +0,0 @@
-source :rubygems
-gemspec
View
12 Rakefile
@@ -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"
Please sign in to comment.
Something went wrong with that request. Please try again.