forked from LibreSolar/mppt-1210-hus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (45 loc) · 1.4 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
dist: xenial
cache:
apt: true
addons:
apt:
packages:
- texlive
- texlive-latex-extra
- texlive-fonts-extra
- texlive-lang-german
- texlive-lang-english
- lmodern
- latex-xcolor
- python-wxgtk3.0
- xvfb # needed for headless wxGTK
script:
# debian-supplied pandoc is very old --> install manually
- wget https://github.com/jgm/pandoc/releases/download/2.7.3/pandoc-2.7.3-1-amd64.deb
- sudo dpkg -i pandoc-2.7.3-1-amd64.deb
- rm pandoc-2.7.3-1-amd64.deb
# build manual
- cd manual
- make all
- mkdir build
- cp manual.html build/index.html
- cp manual.pdf build/
- cp -r template/ build/
- cp -r images/ build/
# install KiCad
- sudo add-apt-repository --yes ppa:js-reynaud/kicad-5.1
- sudo apt update
- sudo apt install --no-install-recommends kicad
# generate interactive BOM
- cd ..
- git clone https://github.com/openscopeproject/InteractiveHtmlBom bom-generator
- xvfb-run python bom-generator/InteractiveHtmlBom/generate_interactive_bom.py --no-browser kicad/mppt-1210-hus.kicad_pcb
- cp kicad/bom/ibom.html manual/build/bom.html
deploy:
provider: pages
skip-cleanup: true
github-token: $GH_REPO_TOKEN
local-dir: manual/build
keep-history: false
on:
branch: master