forked from thesofproject/sof-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
executable file
·36 lines (29 loc) · 888 Bytes
/
.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
dist: xenial
language: python
python:
- "3.6"
before_install:
- sudo apt-get update -qq
- sudo apt-get install doxygen make default-jre graphviz cmake
install:
- pip install -r scripts/requirements.txt
script:
- cd .. && git clone https://github.com/thesofproject/sof.git && cd sof/doc && cmake . && make doc && cd - && cd sof-docs
- make html
- ls _build
before_deploy:
- mkdir _build/latest
- mv -v _build/html/* _build/latest
- mv _build/latest _build/html
- touch _build/html/.nojekyll
- mv scripts/publish-README.md _build/html/README.md
- mv scripts/publish-index.html _build/html/index.html
deploy:
- provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
repo: thesofproject/thesofproject.github.io
on:
branch: publish
local_dir: _build/html/
target_branch: master