diff --git a/.travis.yml b/.travis.yml index ec0ca97..752ae49 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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: diff --git a/Rakefile b/Rakefile index 6b930c9..1a477ed 100644 --- a/Rakefile +++ b/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"