File: Rakefile

package info (click to toggle)
ruby-ast 2.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 160 kB
  • ctags: 39
  • sloc: ruby: 373; makefile: 6
file content (19 lines) | stat: -rw-r--r-- 541 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
require 'bundler/gem_tasks'
require 'bundler/setup'

task :default => :test

desc "Run test suite"
task :test do
  sh "bacon -Itest -a"
end

PAGES_REPO = 'git@github.com:whitequark/ast'

desc "Build and deploy documentation to GitHub pages"
task :pages do
  system "git clone #{PAGES_REPO} gh-temp/ -b gh-pages; rm gh-temp/* -rf; touch gh-temp/.nojekyll" or abort
  system "yardoc -o gh-temp/;" or abort
  system "cd gh-temp/; git add -A; git commit -m 'Updated pages.'; git push -f origin gh-pages" or abort
  FileUtils.rm_rf 'gh-temp'
end