testing travis ci: automatic doxygen doc deployment

This commit is contained in:
stnolting 2020-07-07 21:17:04 +02:00
parent aec70507d6
commit 960770c8d8
2 changed files with 27 additions and 6 deletions

View file

@ -1,3 +1,5 @@
sudo: false
dist: bionic
services:
@ -6,12 +8,22 @@ services:
env:
- PATH=$PATH:$(pwd)/riscv/bin
# Install dependencies
addons:
apt:
packages:
- doxygen
script:
# Generate documentary (modify doxygen script for travis ci before)
- /bin/bash -c "sed -i 's/$(PWD)/$(TRAVIS_BUILD_DIR)/g'' docs/doxygen_makefile_sw"
- doxygen docs/doxygen_makefile_sw
# Get simulator tools
- docker pull ghdl/ghdl:buster-gcc-8.3.0
# Get toolchain & run SW check
# Get toolchain and run SW check
- /bin/bash -c "chmod u+x .ci/install.sh && .ci/install.sh"
- /bin/bash -c "chmod u+x .ci/sw_check.sh && .ci/sw_check.sh"
@ -20,6 +32,15 @@ script:
docker run -t -v `pwd`:/mnt/data ghdl/ghdl:buster-gcc-8.3.0
/bin/bash -c "chmod u+x /mnt/data/.ci/hw_check.sh && /mnt/data/.ci/hw_check.sh"
# Generate and deploy documentation
deploy:
provider: pages
skip_cleanup: true
local_dir: docs/build/html
github_token: $GH_REPO_TOKEN
on:
branch: master
notifications:
email:
on_success: never

View file

@ -819,11 +819,11 @@ WARN_LOGFILE =
# spaces. See also FILE_PATTERNS and EXTENSION_MAPPING
# Note: If this tag is empty the current directory is searched.
INPUT = ../README.md \
../sw/lib/source \
../sw/lib/include \
../sw/bootloader \
../sw/example
INPUT = $(PWD)/../README.md \
$(PWD)/../sw/lib/source \
$(PWD)/../sw/lib/include \
$(PWD)/../sw/bootloader \
$(PWD)/../sw/example
# This tag can be used to specify the character encoding of the source files
# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses