travis 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -1,8 +1,9 @@
1
1
  # encoding: utf-8
2
2
  $LOAD_PATH.unshift File.expand_path('../lib', __FILE__)
3
+ windows = RUBY_PLATFORM =~ /mswin|mingw/
3
4
 
4
5
  desc "run specs"
5
- task(:spec) { ruby '-S rspec spec -c' }
6
+ task(:spec) { ruby "-S rspec spec#{" -c" unless windows}" }
6
7
 
7
8
  desc "generate gemspec"
8
9
  task 'travis.gemspec' do
@@ -34,5 +35,6 @@ task 'travis.gemspec' do
34
35
  end
35
36
 
36
37
  task :gemspec => 'travis.gemspec'
37
- task :default => [:spec, :gemspec]
38
+ task :default => :spec
39
+ task :default => :gemspec unless windows
38
40
  task :test => :spec
@@ -0,0 +1,3 @@
1
+ require 'travis'
2
+ repos = Travis::Repository.find_all(owner_name: 'travis-ci')
3
+ repos.each { |repo| puts "#{repo.slug} #{repo.last_build_state}" }