-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathRakefile
More file actions
36 lines (28 loc) · 743 Bytes
/
Rakefile
File metadata and controls
36 lines (28 loc) · 743 Bytes
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
require 'cucumber'
require 'cucumber/rake/task'
VERSION = "0.0.2"
JAR = "janus-#{VERSION}-standalone.jar"
CLJ_SRC = FileList['**/*.clj']
file JAR => CLJ_SRC do
sh "lein uberjar"
end
desc "Build janus into something runnable"
task :build => JAR
desc "Run all tests"
task :test do
sh "lein midje"
end
Cucumber::Rake::Task.new(:features => JAR) do |t|
t.cucumber_opts = "features --format pretty --tags ~@wip"
end
desc "Verifies janus"
task :verify => [:test, :features]
desc "Packages Janus for release"
task :package => [:build, :verify] do
rel_name = "janus-#{VERSION}"
mkdir_p rel_name
cp JAR, "#{rel_name}/janus.jar"
rm_f "#{rel_name}.tar.gz"
sh "tar -cvf #{rel_name}.tar #{rel_name}"
sh "gzip #{rel_name}.tar"
end