Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*.docx
*.zip
Gemfile.lock
15 changes: 15 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
before_script:
- sudo apt-get update
- sudo apt-get install -y pandoc zip
deploy:
provider: releases
api_key:
secure: kMooLRcmw6nKoJGncvNl11c32uZoZQxHdvsL7VPAkkaK3x5bhzbG/1m5gYLp6IcAPjyqEtRiENcaER3YshN2uEqUS+z8YNFH+rLe3Uy/T4ySJ0R2i70YhobHFirQyY/BMKmx9lMIc/2AY7z4fj2xqm4RxVpQvXVhPI35d0tfuqA=
file: "Series-Seed-Microsoft-Word.zip"
skip_cleanup: true
on:
repo: kemitchell/equity
branch: master
tags: true
language: ruby
before_deploy: bundle exec rake
5 changes: 5 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
source "https://rubygems.org"

group :test do
gem 'rake'
end
20 changes: 20 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
require 'rake'
require 'rake/clean'

markdown_files = Rake::FileList['*.md']
docx_files = markdown_files.ext('docx')
zip = 'Series-Seed-Microsoft-Word.zip'

task :default => zip

task zip => docx_files do |t|
sh "zip '#{t.name}' " + t.prerequisites.map { |file| "'#{file}'" }.join(' ')
end

rule '.docx' => '.md' do |t|
sh "pandoc --smart -o '#{t.name}' '#{t.source}'"
end

CLEAN.include(docx_files)

CLOBBER << zip