Skip to content

Commit

Permalink
travis-CI: Install sphinx on the platforms that need it
Browse files Browse the repository at this point in the history
to build the python binding docs. Centos 6 doesn't include python 3,
so use the old version there...

Signed-off-by: Robin Getz <[email protected]>
  • Loading branch information
rgetz committed Apr 8, 2020
1 parent 88cf702 commit d52f8cd
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions CI/travis/before_install_linux
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@

. CI/travis/lib.sh

install_sphinx() {
if ! command_exists pip3 ; then
pip install sphinx
pip install sphinx-rtd-theme
else
pip3 install sphinx
pip3 install sphinx-rtd-theme
fi

}

handle_centos() {
# FIXME: see about adding `libserialport-dev` from EPEL ; maybe libusb-1.0.0-devel...
yum -y groupinstall 'Development Tools'
Expand All @@ -14,6 +25,7 @@ handle_centos() {
fi

yum -y install doxygen avahi-devel
install_sphinx
}

handle_centos_docker() {
Expand All @@ -33,6 +45,7 @@ handle_default() {

if [ -n "${GH_DOC_TOKEN}" ] ; then
sudo apt-get install -y doxygen
install_sphinx
fi
if [ `sudo apt-cache search libserialport-dev | wc -l` -gt 0 ] ; then
sudo apt-get install -y libserialport-dev
Expand Down

0 comments on commit d52f8cd

Please sign in to comment.