forked from rdeits/cryptics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
39 lines (31 loc) · 822 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
35
36
37
38
39
desc "Generate all data sets"
task :data => ["data/synonyms.pck", "data/ngrams.gob"]
file "data/synonyms.pck" => ["python/en"] do
sh "mkdir -p data"
sh "python python/data_generators/generate_synonyms.py"
end
file "data/anagrams.pck" do
sh "python python/data_generators/generate_anagrams.py"
end
file "data/ngrams.gob" do
sh "go install data_gen"
sh "data_gen"
end
file "python/en" do
sh "curl -o /tmp/en.zip http://nodebox.net/code/data/media/linguistics.zip"
sh "cd python"
sh "unzip /tmp/en.zip"
sh "cd .."
end
task :server => [:data, :go] do
sh "python python/crypticweb/server.py"
end
task :test => [:data, :go] do
sh "nosetests --nocapture python"
end
task :go do
sh "go install cryptics"
end
task :puz => [:data, :go] do
sh "python python/solve_puz.py sample_puzzles/kegler_cryptic_1.puz"
end