Skip to content

Commit 3f4e918

Browse files
committed
build: disable documention on xapian for travis-ci.
--disable-documentation passed to configure doesn't work and I have a crash in sphinx that prevents testing. Use -enable-documentation=no which appears to be how 1.4.14 expects it at least. no-github-ci to disable testing for github as this change affects travis only at this point. If it works, I'll disable doc build on github to to save cycles.
1 parent e5bd591 commit 3f4e918

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.travis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,14 @@ before_install:
8080
- tar -Jxvf xapian-bindings-$XAPIAN_VER.tar.xz
8181
- cd xapian-bindings-$XAPIAN_VER/
8282
- echo $TRAVIS_PYTHON_VERSION
83-
- if [[ $TRAVIS_PYTHON_VERSION == "2."* ]]; then ./configure --prefix=$VIRTUAL_ENV --with-python --disable-documentation; fi
83+
- if [[ $TRAVIS_PYTHON_VERSION == "2."* ]]; then ./configure --prefix=$VIRTUAL_ENV --with-python --enable-documentation=no; fi
8484
# edit the configure script. distutils.sysconfig.get_config_vars('SO')
8585
# doesn't work for 3.11 or newer.
8686
# Change distutils.sysconfig... to just sysconfig and SO to EXT_SUFFIX
8787
# to get valid value.
88-
- if [[ $TRAVIS_PYTHON_VERSION == "3."* ]]; then sed -i -e '/PYTHON3_SO=/s/distutils\.//g' -e '/PYTHON3_SO=/s/"SO"/"EXT_SUFFIX"/g' configure; ./configure --prefix=$VIRTUAL_ENV --with-python3 --disable-documentation; fi
89-
- if [[ $TRAVIS_PYTHON_VERSION == "nightly" ]]; then sed -i -e '/PYTHON3_SO=/s/distutils\.//g' -e '/PYTHON3_SO=/s/"SO"/"EXT_SUFFIX"/g' configure; ./configure --prefix=$VIRTUAL_ENV --with-python3 --disable-documentation; fi
90-
- if [[ $TRAVIS_PYTHON_VERSION == "pypy3" ]]; then sed -i -e '/PYTHON3_SO=/s/distutils\.//g' -e '/PYTHON3_SO=/s/"SO"/"EXT_SUFFIX"/g' configure; ./configure --prefix=$VIRTUAL_ENV --with-python3 --disable-documentation; fi
88+
- if [[ $TRAVIS_PYTHON_VERSION == "3."* ]]; then sed -i -e '/PYTHON3_SO=/s/distutils\.//g' -e '/PYTHON3_SO=/s/"SO"/"EXT_SUFFIX"/g' configure; ./configure --prefix=$VIRTUAL_ENV --with-python3 --enable-documentation=no; fi
89+
- if [[ $TRAVIS_PYTHON_VERSION == "nightly" ]]; then sed -i -e '/PYTHON3_SO=/s/distutils\.//g' -e '/PYTHON3_SO=/s/"SO"/"EXT_SUFFIX"/g' configure; ./configure --prefix=$VIRTUAL_ENV --with-python3 --enable-documentation=no; fi
90+
- if [[ $TRAVIS_PYTHON_VERSION == "pypy3" ]]; then sed -i -e '/PYTHON3_SO=/s/distutils\.//g' -e '/PYTHON3_SO=/s/"SO"/"EXT_SUFFIX"/g' configure; ./configure --prefix=$VIRTUAL_ENV --with-python3 --enable-documentation=no; fi
9191
- case "$TRAVIS_PYTHON_VERSION" in disable) echo skipping xapian build;; *) make && make install; esac
9292

9393
- PATH=$VIRTUAL_ENV/bin:$PATH

0 commit comments

Comments
 (0)