-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
59 lines (48 loc) · 1.69 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
##############################################################################
# Rakefile - Configuration file for rake (http://rake.rubyforge.org/)
# Time-stamp: <Sun 2016-11-13 20:53 svarrette>
#
# Copyright (c) 2012 Sebastien Varrette <Sebastien.Varrette@uni.lu>
# . http://varrette.gforge.uni.lu
# ____ _ __ _ _
# | _ \ __ _| | _____ / _(_) | ___
# | |_) / _` | |/ / _ \ |_| | |/ _ \
# | _ < (_| | < __/ _| | | __/
# |_| \_\__,_|_|\_\___|_| |_|_|\___|
#
# Use 'rake -T' to list the available actions
#
# Resources:
# * http://www.stuartellis.eu/articles/rake/
##############################################################################
# require 'rubygems'
# FALKORLIB_SPEC = Gem::Specification.load("falkorlib.gemspec")
task :default => [ 'rspec' ]
#.....................
require 'rake/clean'
CLEAN.add 'pkg'
CLOBBER.add 'doc'
#__________________ My own rake tasks __________________
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require "falkorlib"
# Adapt the versioning aspects
FalkorLib.config.versioning do |c|
c[:type] = 'gem'
end
# Adapt the Git flow aspects
FalkorLib.config.gitflow do |c|
c[:branches] = {
:master => 'production',
:develop => 'devel'
}
end
require "falkorlib/tasks/git" # OR require "falkorlib/git_tasks"
require "falkorlib/tasks/gem" # OR require "falkorlib/gem_tasks"
# [ 'rspec', 'yard' ] .each do |tasks|
# load "falkorlib/tasks/#{tasks}.rake"
# end
# desc "clean the directory"
# task :clean => :clobber_package do
# sh "rm -rf doc" if File.directory?("doc")
# end