Skip to content

Commit

Permalink
add .travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rdhyee committed Aug 13, 2015
1 parent bbc5de0 commit ef5bf83
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
language: ruby
before_install:
- gem install asciidoctor tilt
script:
- VERSION=`ruby -e "require 'yaml'; meta = YAML.load_file('metadata.yaml'); puts meta['_version'];"`
- git clone https://github.com/gitenberg-dev/asciidoctor-htmlbook.git
- asciidoctor -a toc,version=$VERSION -b xhtml5 -T ./asciidoctor-htmlbook/htmlbook-autogen/
-d book book.asciidoc -o book.html
- git clone https://github.com/gitenberg-dev/HTMLBook
- xsltproc -stringparam external.assets.list " " ./HTMLBook/htmlbook-xsl/epub.xsl book.html
- cp ./HTMLBook/stylesheets/epub/epub.css OEBPS
- cp cover.jpg OEBPS/cover.jpg
- if test -d "./images"; then mv ./images ./OEBPS/ ;fi
- zip -rX book.epub mimetype
- zip -rX book.epub OEBPS/ META-INF/
- if test -d "OEBPS/images/"; then zip -rX book.epub OEBPS/images/ ;fi
- mv book.epub Heart-of-Darkness.epub
branches:
only:
- master
deploy:
skip_cleanup: true
provider: releases
api_key:
secure: 0VRHJvBie6DhTdH+tHinUSj28yETRSmk679N71Df0JAVitgCXPWgkjcd+sLU898Cz+O5FQkmiGzqvhpMuFftGUb4TaVi33b3cFH1OYkWOlRHNCXiSHYdLIV723ZI78njum9yEIYsAPlnIo0v3xF/PIv7nMxsY+rwF5+n5XIG9iYxS4Y1WZxmgKwCZ/ERG4yql87cQ+efdS+gjeyUxvCHXPsWNVesrRQXqv4uSQvlzg4KTDhb9t4Oq6BIAdJtgy3nxh4tRNWulVe7jTuVsAmsO0kDscxnC/gZ7dgCF+YYX1JkSp6HjR9cwj1m19eccCAQVSa09UReHV6dLBLeZ6K7zqOL1XFNJtr8LxD7vI8K6kDvTdeLvqbl0ceNvMRfAXHcAXk17opmuf0HCmMhC0HtKkpTtJqALFFJaqKwRNqVmAAaKlzAY4d2oYDVM7lGEZ0QvxtZVVCHFuQazdb8gSfLpm6sGmXknnm+kDalOJGQxa+++tCqlNuI9VsO+7BKOIwVhebcQaOr4EybF/5BYHlNNlzqbgIiG/lTCsRgfyX5pyEjv0nPSztiI8pluhnQIDt+t4Vu1nnaPt8M3qeYbQDtEuFH6bhD2tq0fvT9+hcPIyMZdqaXRVTL22emSJH4i5RsjGzBAXoklVh52Cymahnkx4xHT8K8M035gd0pv84mTlk=
file: Heart-of-Darkness.epub
"on":
repo: GITenberg/Heart-of-Darkness_219
addons:
apt:
packages:
- xsltproc

0 comments on commit ef5bf83

Please sign in to comment.