zephyr/scripts/ci/build-docs.sh
Anas Nashif acedb70a94 ci: add CI/CD integration and related scripts
Add initial .shippable.yml for CI integration on github and related
scripts.

Change-Id: I095d125e780bba980e635e218205c8741e753a8e
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2017-04-27 20:58:14 -04:00

21 lines
543 B
Bash
Executable File

#!/bin/bash
set -e
sudo pip install pygithub
echo "- Checkpatch"
cd ${ZEPHYRREPO_STATE}
source zephyr-env.sh
git diff ${ZEPHYR_CIREPO_VERSIONNAME} | ${ZEPHYR_BASE}/scripts/checkpatch.pl --mailback --no-tree
echo "- Install dependencies"
sudo apt-get install doxygen make
sudo pip install breathe sphinx
echo "- Building docs..."
make htmldocs > doc.log 2>&1
echo "- Look for new warnings..."
#./scripts/filter-known-issues.py --config-dir .known-issues/doc/ doc.log > doc.warnings
#cat doc.warnings
#test -s doc.warnings && exit 0 # FIXME