-
Notifications
You must be signed in to change notification settings - Fork 51
/
.travis.yml
52 lines (52 loc) · 2.01 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
language: minimal
os: linux
arch: amd64
dist: focal
branches:
except:
- CI-latest
- jenkins_test
script:
- sudo apt-get install -y texlive-latex-extra texlive-xetex latexmk xzdec
- sudo apt-get install -y sshpass
- sudo tlmgr init-usertree
- sudo tlmgr option repository http://ftp.math.utah.edu/pub/tex/historic/systems/texlive/2019/tlnet-final/
- sudo tlmgr --no-verify-downloads install bibtex IEEEtran tools url arydshln booktabs sttools etoolbox titlesec appendix parskip kvoptions ltxcmds kvsetkeys float caption tikzpagenodes pgf ifoddpage imakeidx xkeyval nowidow hyperref infwarerr textpos enumitem tcolorbox environ listings wrapfig needspace ean ocr-b changepage tabulary multirow geometry zapfding helvetic || true
- sudo updmap-sys
- git -C .. clone https://github.com/MEGA65/mega65-libc.git
- git -C .. clone --branch=development https://github.com/MEGA65/mega65-core.git
- make mega65-book.pdf || true
- make mega65-book.pdf
- make mega65-basic65-reference.pdf || true
- make mega65-basic65-reference.pdf
- make mega65-chipset-reference.pdf || true
- make mega65-chipset-reference.pdf
- make mega65-developer-guide.pdf || true
- make mega65-developer-guide.pdf
- make mega65-userguide.pdf || true
- make mega65-userguide.pdf
after_script:
- ./genhtml.sh
- ssh-keygen -R ${SFTP_SERVER}
- sshpass -p ${SFTP_PASSWORD} scp -o StrictHostKeyChecking=no -P ${SFTP_PORT} *.pdf ${SFTP_USER}@${SFTP_SERVER}:manuals-upload/
- sshpass -p ${SFTP_PASSWORD} scp -o StrictHostKeyChecking=no -P ${SFTP_PORT} *.log ${SFTP_USER}@${SFTP_SERVER}:manuals-upload/
- sshpass -p ${SFTP_PASSWORD} scp -o StrictHostKeyChecking=no -P ${SFTP_PORT} index.html ${SFTP_USER}@${SFTP_SERVER}:manuals-upload/
before_deploy:
- |
if [[ -z "$TRAVIS_TAG" ]]; then
export TRAVIS_TAG=CI-latest
fi
deploy:
- provider: releases
api_key: $GITHUB_API_KEY
file_glob: true
file:
- $TRAVIS_BUILD_DIR/*.pdf
- $TRAVIS_BUILD_DIR/*.log
skip_cleanup: true
prerelease: true
draft: false
overwrite: true
on:
tags: false
branch: 176_automate_doc_build