-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
76 lines (68 loc) · 1.34 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# frozen_string_literal: true
require "bundler/gem_tasks"
require "rspec/core/rake_task"
require "cucumber/rake/task"
require "rake/manifest"
RSpec::Core::RakeTask.new(:spec)
Cucumber::Rake::Task.new(:cucumber) do |t|
t.cucumber_opts = "features --format pretty"
end
REGRESSION_TEST_NAMES = %w(
branch
branch-all
branch-rev-list
branch-rev-list-one-path
clean
clone
clone-annotated-tag
config
encode
error
fetch
gitignore
init
issue29
issue95
issue96
pull
pull-all
pull-merge
pull-merge-no-squash
pull-message
pull-new-branch
pull-new-branch-no-squash
pull-no-squash
pull-ours
pull-theirs
pull-twice
pull-worktree
push
push-after-init
push-force
push-new-branch
push-no-changes
push-no-squash
push-squash
push-with-merges
push-with-merges-no-squash
reclone
status
submodule
).freeze
namespace :compat do
task :full do
success = system "prove test"
exit 1 unless success
end
desc "Run integration tests from git-subrepo"
task :regression do
test_list = REGRESSION_TEST_NAMES.map { |it| "test/#{it}.t" }.join(" ")
success = system "prove #{test_list}"
exit 1 unless success
end
end
Rake::Manifest::Task.new do |t|
t.patterns = ["lib/**/*", "COPYING", "*.md", "bin/*"]
end
task build: "manifest:check"
task default: [:spec, :cucumber, "compat:regression"]