From a24e03074e5a0736c84ef32b9554bafb858947d3 Mon Sep 17 00:00:00 2001 From: "Raymond Yee (GITenberg)" Date: Wed, 9 Mar 2016 14:25:48 -0800 Subject: [PATCH] updated .travis.yml [ci skip] --- .travis.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4e19fea..9a6c34a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,13 +21,15 @@ script: - /usr/bin/python asciidoctor-htmlbook/gitberg-machine/machine.py -o . -m metadata.yaml book.html - 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 [ -e cover.jpg ]; then cp cover.jpg OEBPS/cover.jpg; fi # look for first images directory and one found, copy over to ./OEBPS - find . -name images -type d | head -n 1 | xargs -I {} mv {} ./OEBPS/ - 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 +- ebook-convert Heart-of-Darkness.epub Heart-of-Darkness.mobi +- xvfb-run ebook-convert Heart-of-Darkness.epub Heart-of-Darkness.pdf branches: only: - master @@ -43,10 +45,15 @@ deploy: 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 + file: + - Heart-of-Darkness.epub + - Heart-of-Darkness.mobi + - Heart-of-Darkness.pdf "on": repo: GITenberg/Heart-of-Darkness_219 addons: apt: packages: - - xsltproc \ No newline at end of file + - xsltproc + - xvfb + - calibre \ No newline at end of file