forked from poppy-project/poppy-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
33 lines (33 loc) · 1.85 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
language: node_js
node_js:
- '4.0'
env:
global:
- CXX=g++-4.8
- GH_USERNAME=poppy-project
- GH_REPO=poppy-docs
- GIT_NAME=poppy-bot
- secure: OVutpst8wzg5cyPfN6G8rmQwOspHowtccO2YvIppz1uzO6m5Zyck+6LBwGa7QOdlZ6ZFFnHlkpv0jP2ERmlkfum3IlE8GTCl+1bOUKoZzP7dtViMzcXffPZlSn+2ZBoYoVoRskuII/2rO0BA2GEuKkcoY7GPxZW3R8bj0ts742NMYjh5nEcrrKeeId4vsQmh3c9a7XK1P6xZiX4kKtDsyYMY/U1OTAHnwATUYeDLKDwEkGV30qL/nzb/ZDTSFRQLRWAKp4Ilu3ihiBa1nfdzJfrEfZHVdMYePRMLhoin1ZzQw0q6SmA7E3mff8NA0k3ICvHQs8FVlSIoDgeSAl0aQgl2kU0NqLOi3EJ6xuKNnzq01kOt9YNH2SqBN3XTWNXVs1DKZe9ys5HqFRs72BztD2DpNrzZnAsiVLKsWA0BVKvp/IisxOxG60XjRJDYMhOTUtqgo1Its2WjhOPB2oTQiVO1i5QznFiA5Sp46Ok4VuBulNzmaYrZINB+P9udLew28N0WNnbDkaXDnNUNUABflm0gIexFt7GpytUbsew/+dlUUEM98QIwJ8/g8Ew/bIzkKyWnRfy6E6hIDk2o+kqG1ocNsLaRcqFfmXwsoJ3TOveroptcjcHEwoPMGJqvzdNPtJ1kW6Jvd/dwG2efUehHvN6tTHrJ9rCJvnfaEEVw/Jk=
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
before_install:
- npm install -g gitbook-cli broken-link-checker http-server
- gitbook install
- wget -nv -O- https://raw.githubusercontent.com/kovidgoyal/calibre/master/setup/linux-installer.py
| python -c "import sys; main=lambda x,y:sys.stderr.write('Download failed\n');
exec(sys.stdin.read()); main('~/calibre-bin', True)" > /dev/null
script:
- set +e
- export PATH=$PATH:$HOME/calibre-bin/calibre
- gitbook build -d ./
- gitbook pdf -d ./
- cd _book/ && http-server -p 8081 -s &
- blc http://localhost:8081/en/index.html -ro --exclude *.local* --exclude *192.168* --exclude *.127.0.0.1 --user-agent "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.86 Safari/537.36" --get | tee contributing/checked_links.txt
- grep -e 'BROKEN' -e 'Getting links from' -e 'Error' contributing/checked_links.txt
> contributing/broken_links.txt
- ". ./ci/update_documentation.sh"