Skip to content

Commit

Permalink
try to build epub, mobi and pdf on Travis CI
Browse files Browse the repository at this point in the history
  • Loading branch information
KengoTODA committed Jul 30, 2018
1 parent d83a29d commit 21428a6
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
24 changes: 21 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,33 @@
language: java
jdk:
- oraclejdk8
install:
sudo: required
before_install:
- nvm install
- nvm use
- npm install -g svgexport
# https://calibre-ebook.com/download_linux
- sudo -v && wget -nv -O- https://download.calibre-ebook.com/linux-installer.sh | sudo sh /dev/stdin
- sudo ln -s /opt/calibre/ebook-convert /usr/local/bin/
install:
- npm install
- ./mvnw install -DskipTests=true -B
script:
- npm test
- ./mvnw verify -B
sudo: false
- travis_wait npm run epub
- travis_wait npm run mobi
- travis_wait npm run pdf
cache:
directories:
- node_modules
deploy:
provider: releases
api_key:
secure: "T72dusk4McXA72qrJmSBVEkTzT7B/jKXujl39TcwjEWRlgmodldRBg0W/3n3L2thl2d72mIXaHYTmYUa1GT3Stvg4oZamYZD3/AVbDeGL7DKLixc/dfIK5ib8Hu4lZLRx0iP/BC5F9laj1GlzIGwkp7RwqltvPmB0DTcFVRhMco="
file:
- 'what-is-maven.epub'
- 'what-is-maven.mobi'
- 'what-is-maven.pdf'
skip_cleanup: true
on:
tags: true
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
"scripts": {
"postinstall": "gitbook install",
"test": "gitbook build",
"epub": "gitbook epub ./ ./what-is-maven.epub",
"mobi": "gitbook mobi ./ ./what-is-maven.mobi",
"pdf": "gitbook pdf ./ ./what-is-maven.pdf",
"pretest": "textlint '!(node_modules)/*.md'"
},
Expand Down

0 comments on commit 21428a6

Please sign in to comment.