-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
61 lines (59 loc) · 1.46 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
sudo: required
dist: trusty
language: ruby
before_install:
before_install:
- gem install asciidoctor -v 1.5.2
- gem install tilt
- sudo pip install git+https://github.com/gitenberg-dev/gitberg
- sudo pip install pillow
- sudo pip install cssutils
- sudo pip install docutils
- sudo pip install roman
- sudo pip install git+https://github.com/gitenberg-dev/pg-epubmaker
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
- sudo pip install -r asciidoctor-htmlbook/gitberg-machine/requirements.txt
- /usr/bin/python -c "from gitenberg import travis; travis.build_epub()"
- ebook-convert {{epub_title}}.epub {{epub_title}}.mobi
- xvfb-run ebook-convert {{epub_title}}.epub {{epub_title}}.pdf
branches:
only:
- master
notifications:
webhooks:
urls:
- https://unglue.it/api/travisci/webhook
on_success: always
on_failure: never
on_start: never
deploy:
skip_cleanup: true
provider: releases
api_key:
secure: {{encrypted_key}}
file:
- {{epub_title}}.epub
- {{epub_title}}.mobi
- {{epub_title}}.pdf
"on":
repo: {{repo_owner}}/{{repo_name}}
addons:
apt:
packages:
- xsltproc
- xvfb
- calibre
- python-pip
- git
- python-dev
- libjpeg-dev
- libpng-dev
- libfreetype6
- libfreetype6-dev
- zlib1g-dev
- python-lxml
- libxml2-dev
- libxslt1-dev
- tidy