Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 42 lines (33 sloc) 0.764 kB
6e32d5d @eparreno Modularize
eparreno authored
1 # encoding: utf-8
14f1921 @eparreno First commit
eparreno authored
2 require "rubygems"
3 require "rspec/core/rake_task"
6e32d5d @eparreno Modularize
eparreno authored
4 require 'yard'
b0c1eec @abtris Update rake file to run integration test via Feature: Fetch apiary.ap…
abtris authored
5 require 'cucumber'
6 require 'cucumber/rake/task'
0bd62f0 @abtris Add support for install, release
abtris authored
7 begin
8 require 'bundler/gem_tasks'
9 rescue LoadError
10 puts "Cannot load bundler/gem_tasks"
11 end
b0c1eec @abtris Update rake file to run integration test via Feature: Fetch apiary.ap…
abtris authored
12
d0ea41d @abtris Update rspec to 3.2. Make test output more verbose
abtris authored
13 desc "Run all features"
b0c1eec @abtris Update rake file to run integration test via Feature: Fetch apiary.ap…
abtris authored
14 Cucumber::Rake::Task.new(:features) do |t|
15 t.cucumber_opts = "features --format pretty"
16 end
14f1921 @eparreno First commit
eparreno authored
17
18 desc "Run all specs"
19 RSpec::Core::RakeTask.new(:spec) do |t|
20 t.verbose = true
d0ea41d @abtris Update rspec to 3.2. Make test output more verbose
abtris authored
21 t.rspec_opts = "-fd"
14f1921 @eparreno First commit
eparreno authored
22 end
23
6e32d5d @eparreno Modularize
eparreno authored
24 desc 'Default: Run all specs.'
14f1921 @eparreno First commit
eparreno authored
25 task :default => :spec
6e32d5d @eparreno Modularize
eparreno authored
26
b0c1eec @abtris Update rake file to run integration test via Feature: Fetch apiary.ap…
abtris authored
27 task :test => :spec
28
6e32d5d @eparreno Modularize
eparreno authored
29 task :doc => :yard
30 task :gem => :gemspec
31
32 def gemspec
b683077 @Almad Revert rename
Almad authored
33 @gemspec ||= eval(File.read('apiary.gemspec'), binding, '.gemspec')
6e32d5d @eparreno Modularize
eparreno authored
34 end
35
36 YARD::Rake::YardocTask.new
37
38 desc "Validate the gemspec"
39 task :gemspec do
40 gemspec.validate
41 end
Something went wrong with that request. Please try again.