forked from devicetree-org/devicetree-specification
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
71 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: focal
cache:
apt: true
env:
global:
- SPHINXBUILD=~/.local/bin/sphinx-build
- DIFF_COMMIT=v0.1
git:
depth: false
addons:
apt:
packages:
- python3-pip
- latexmk
- libalgorithm-diff-perl
- texlive
- texlive-latex-extra
- texlive-humanities
- graphviz
install:
- pip3 install --user mako
- pip3 install --user typing
- pip3 install --user Sphinx
- pip3 install --user codespell
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: a/cTtohOiHnrvpdrxjmlZFeO4+w+932fCDejZVwDFmvzy1WLmlGUMLc/8wIWZBNVZcpuDjwecKnmWWGXN4pM8yhb1g6K0MiT1MiBdxjsBjPFD7qG7+RR+HKfxvlwQhtTJZ/NKBj7nq4atYUwFikQ4/S0H6z1rym2H7Edsd4Skt7oEV60WH7bseRlSDdOotlQE8eY2UBXewMOS3PhFmPboyd4n7FXAVF18Olk0XLkAtNtV4g8ng8DQ3LHjbjz1aMW0xxZhBgC2k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TuXZGi6vNH/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