-
Notifications
You must be signed in to change notification settings - Fork 326
/
.travis.yml
44 lines (36 loc) · 967 Bytes
/
.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
language: node_js # gitbook depends on nodejs
dist: trusty
sudo: required
# test on one node.js versions: stable
node_js:
- "stable"
cache:
directories:
- node_modules # NPM packages
before_install:
- sudo apt-get -qq update
#calibre required for gitbook pdf
- sudo apt-get install -y calibre
install:
#- . $HOME/.nvm/nvm.sh
#- nvm install stable
#- nvm use stable
#- npm install
- npm install -g gitbook-cli
script:
#Move the ebook-convert wrapper script to hide the real binary meaning this gets run instead.
#This is to get round the issue of running gitbook pdf inside a headless server
- gitbook install
# it is too slow now, need fix by gitbook
#- gitbook build
#- gitbook pdf ./
- echo "Removing unwanted files"
# configure notifications (email, IRC, campfire etc)
# please update this section to your needs!
#notifications:
# irc: "irc.freenode.org#travis"
branches:
only:
- master
env:
global: