forked from ruby-rdf/rdf
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
executable file
·34 lines (28 loc) · 893 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/env ruby
$:.unshift(File.expand_path(File.join(File.dirname(__FILE__), 'lib')))
require 'rubygems'
begin
require 'rakefile' # @see http://github.com/bendiken/rakefile
rescue LoadError => e
end
require 'rdf'
desc 'Default: run specs.'
task :default => :spec
task :specs => :spec
require 'rspec/core/rake_task'
desc 'Run specifications'
RSpec::Core::RakeTask.new do |spec|
spec.rspec_opts = %w(--options spec/spec.opts) if File.exists?('spec/spec.opts')
end
desc "Run specifications for continuous integration"
RSpec::Core::RakeTask.new("spec:ci") do |spec|
spec.rspec_opts = %w(--options spec/spec.opts) if File.exists?('spec/spec.opts')
end
desc "Build the rdf-#{File.read('VERSION').chomp}.gem file"
task :build do
sh "gem build .gemspec"
end
desc "Generate etc/doap.nt from etc/doap.ttl."
task :doap do
sh "bin/rdf serialize etc/doap.ttl --output etc/doap.nt"
end