forked from devicetree-org/devicetree-specification
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
72 lines (62 loc) · 2.83 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
62
63
64
65
66
67
68
69
70
71
sudo: false
dist: trusty
cache:
apt: true
env:
global:
- SPHINXBUILD=~/.local/bin/sphinx-build
- DIFF_COMMIT=v0.1
git:
depth: false
addons:
apt:
packages:
- python-pip
- latexmk
- libalgorithm-diff-perl
- texlive
- texlive-latex-extra
- texlive-humanities
- texlive-generic-recommended
- graphviz
- texlive-generic-extra
install:
- pip install --user mako
- pip install --user Sphinx
before_script:
- wget https://github.com/ftilmann/latexdiff/releases/download/1.2.1/latexdiff-1.2.1.tar.gz
- tar xvf latexdiff-1.2.1.tar.gz
- export PATH=$PWD/latexdiff-1.2.1/:$PATH
script:
- git checkout $DIFF_COMMIT
- make latexpdf
- mv build/latex build/latex-previous
- git checkout $TRAVIS_COMMIT
- make latexpdf
- make latexdiff
- make html
- make singlehtml
before_deploy:
- cp build/latex/devicetree-specification.pdf build/devicetree-specification-$TRAVIS_TAG.pdf
- cp build/latex/devicetree-specification-changebars.pdf build/devicetree-specification-changebars-$TRAVIS_TAG.pdf
deploy:
- provider: releases
prerelease: false
api_key:
# Rob's OAuth token
#secure: sUwxm3Vbv9p8Uvn/BedgpSbPwnqRJvg0k7ezicEWcJlOF3X6dewX8Qk2x9k9PQ2A8v8GPsf+66D4CABBgz2hIUs68GV7r5ngPHbYQDejI5TjOnYyAuOz8AaCt9+K1nfblqyvg2/4TXKRpHJh9MPzq3WlVB4fvYleGDp1P08xLGCUwrrpyVlA3FQlR3rjPl430GRVCsj/6gEtBs6jHe3/9YhJYUkdgnj8VJI0ISqsSia/wxQyyf1QoydaEhwXVwsapFFCGSX60uo72fs/H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i6vNH/0awPHZukbVJdPOZUd2ji0=
file_glob: true
file:
- "build/devicetree-specification-*.pdf"
skip_cleanup: true
on:
tags: true
branch: master
- provider: pages
github_token: $GITHUB_TOKEN
local_dir: "build/singlehtml"
skip_cleanup: true
on:
branch: master