Skip to content

Commit

Permalink
add rakefile for convenient builds
Browse files Browse the repository at this point in the history
  • Loading branch information
ericfranz committed Sep 29, 2017
1 parent 2cd6a6d commit c9bdf04
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# task default: %w[build]

task :default do
system "rake --tasks"
end

namespace :pipenv do
desc "Build docs using pipenv"
task :build do
exec 'WORKDIR=/doc PIPENV_VENV_IN_PROJECT=1 pipenv run make html'
end

desc "Install pipenv dependencies"
task :install do
exec 'WORKDIR=/doc PIPENV_VENV_IN_PROJECT=1 pipenv install'
end
end

namespace :docker do

desc "Build docs using docker"
task :build do
exec 'docker run --rm -i -t -v "${PWD}:/doc" -u "$(id -u):$(id -g)" ohiosupercomputer/docker-sphinx make html'
end
end

desc "Build docs using pipenv (shortcut)"
task :build => ["pipenv:build"]

0 comments on commit c9bdf04

Please sign in to comment.