Skip to content

Commit

Permalink
Clean Rakefile tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
takuti committed Jan 17, 2018
1 parent c089553 commit 007153f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -9,7 +9,7 @@ before_install:
- docker build -t takuti/twitter-bot .

script:
- docker run -it takuti/twitter-bot /bin/sh -c "bundle exec rake"
- docker run -it takuti/twitter-bot /bin/sh -c "bundle exec rake test"

branches:
only:
Expand Down
18 changes: 0 additions & 18 deletions Rakefile
@@ -1,21 +1,3 @@
task default: :test
task :setup => ["ipadic:compile", "ipadic:clean"]

namespace :ipadic do
task :compile do
if not File.exist?("./ipadic")
system "wget 'http://osdn.jp/frs/redir.php?m=jaist&f=%2Figo%2F52344%2Figo-0.4.3.jar' -O igo.jar"
system "wget 'https://drive.google.com/uc?export=download&id=0B4y35FiV1wh7MWVlSDBCSXZMTXM' -O mecab-ipadic.tar.gz"
system "tar zxfv mecab-ipadic.tar.gz"
system "java -cp igo.jar net.reduls.igo.bin.BuildDic ipadic mecab-ipadic-2.7.0-20070801 EUC-JP"
end
end

task :clean do
system "rm -rf igo.jar mecab-ipadic-2.7.0-20070801 mecab-ipadic.tar.gz"
end
end

task :test do
# save markov table on local as "tweet.markov"
system "ruby lib/post_tweet.rb dry-run"
Expand Down

0 comments on commit 007153f

Please sign in to comment.