Skip to content

Commit

Permalink
add .travis.deploy.api_key.txt; updated .travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rdhyee committed Jan 15, 2016
1 parent ef5bf83 commit ce1f7ef
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
1 change: 1 addition & 0 deletions .travis.deploy.api_key.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0VRHJvBie6DhTdH+tHinUSj28yETRSmk679N71Df0JAVitgCXPWgkjcd+sLU898Cz+O5FQkmiGzqvhpMuFftGUb4TaVi33b3cFH1OYkWOlRHNCXiSHYdLIV723ZI78njum9yEIYsAPlnIo0v3xF/PIv7nMxsY+rwF5+n5XIG9iYxS4Y1WZxmgKwCZ/ERG4yql87cQ+efdS+gjeyUxvCHXPsWNVesrRQXqv4uSQvlzg4KTDhb9t4Oq6BIAdJtgy3nxh4tRNWulVe7jTuVsAmsO0kDscxnC/gZ7dgCF+YYX1JkSp6HjR9cwj1m19eccCAQVSa09UReHV6dLBLeZ6K7zqOL1XFNJtr8LxD7vI8K6kDvTdeLvqbl0ceNvMRfAXHcAXk17opmuf0HCmMhC0HtKkpTtJqALFFJaqKwRNqVmAAaKlzAY4d2oYDVM7lGEZ0QvxtZVVCHFuQazdb8gSfLpm6sGmXknnm+kDalOJGQxa+++tCqlNuI9VsO+7BKOIwVhebcQaOr4EybF/5BYHlNNlzqbgIiG/lTCsRgfyX5pyEjv0nPSztiI8pluhnQIDt+t4Vu1nnaPt8M3qeYbQDtEuFH6bhD2tq0fvT9+hcPIyMZdqaXRVTL22emSJH4i5RsjGzBAXoklVh52Cymahnkx4xHT8K8M035gd0pv84mTlk=
18 changes: 15 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,31 @@
sudo: required
dist: trusty
language: ruby

before_install:
- gem install asciidoctor tilt
- gem install asciidoctor -v 1.5.2
- gem install tilt
- sudo pip install git+https://github.com/rdhyee/ebooklib.git
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/

- sudo pip install -r asciidoctor-htmlbook/gitberg-machine/requirements.txt
- asciidoctor -a toc,idprefix=xx_,version=$VERSION -b xhtml5 -T ./asciidoctor-htmlbook/htmlbook-autogen/
-d book book.asciidoc -o book.html
- git clone https://github.com/gitenberg-dev/HTMLBook

# make book.html available to jinja2 environment by putting it into templates
- cp book.html asciidoctor-htmlbook/gitberg-machine/templates/

- /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 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
- if test -d "OEBPS/images/"; then zip -rX book.epub OEBPS/images/ ;fi
- mv book.epub Heart-of-Darkness.epub
branches:
only:
Expand Down
2 changes: 1 addition & 1 deletion metadata.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
_repo: Heart-of-Darkness_219
_version: 0.0.1
_version: 0.0.2
covers:
- attribution: Louise Norman, 2015
cover_type: original
Expand Down

0 comments on commit ce1f7ef

Please sign in to comment.