Mercurial > p > roundup > code
diff .travis.yml @ 6713:2bae523e78a0
Build xapian.
python3-xapian was installed. But for some reason it's not used.
So build xapian and try to get the xapian tests to be run.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Tue, 21 Jun 2022 21:37:48 -0400 |
| parents | 8316e4d0f367 |
| children | c997a0dbd6bd |
line wrap: on
line diff
--- a/.travis.yml Tue Jun 21 21:25:34 2022 -0400 +++ b/.travis.yml Tue Jun 21 21:37:48 2022 -0400 @@ -44,34 +44,31 @@ # - sourceline: ppa:xapian-backports/ppa packages: -# # Required to build/install the xapian-binding -# - libxapian-dev -# # Required to install gpg + # Required to build/install the xapian-binding + - libxapian-dev + # Required to install gpg - swig # Required to build gpgme. - gpgsm before_install: - - if [[ $TRAVIS_PYTHON_VERSION == "2."* ]]; then sudo apt-get install python-xapian; else sudo apt-get install python3-xapian; fi - -# - echo "$TRAVIS_PYTHON_VERSION" -# # Sphinx required to build the xapian python bindings. Use 1.8.5 on -# # older python and newest on newer. -# - if [[ $TRAVIS_PYTHON_VERSION == "2."* ]]; then pip install sphinx==1.8.5; fi -# - if [[ $TRAVIS_PYTHON_VERSION == '3.'* ]] ; then pip install sphinx; fi -# - if [[ $TRAVIS_PYTHON_VERSION == "nightly" ]]; then pip install sphinx; fi -# - sudo apt-get update && sudo apt-get upgrade libxapian-dev libxapian -# - XAPIAN_VER=$(dpkg -l libxapian-dev | tail -n 1 | awk '{print $3}' | cut -d '-' -f 1); echo $XAPIAN_VER -# - cd /tmp -# - curl -s -O https://oligarchy.co.uk/xapian/$XAPIAN_VER/xapian-bindings-$XAPIAN_VER.tar.xz -# - tar -Jxvf xapian-bindings-$XAPIAN_VER.tar.xz -# - cd xapian-bindings-$XAPIAN_VER/ -# - echo $TRAVIS_PYTHON_VERSION -# - if [[ $TRAVIS_PYTHON_VERSION == "2."* ]]; then ./configure --prefix=$VIRTUAL_ENV --with-python; fi -# - if [[ $TRAVIS_PYTHON_VERSION == "3."* ]]; then ./configure --prefix=$VIRTUAL_ENV --with-python3; fi -# - if [[ $TRAVIS_PYTHON_VERSION == "nightly" ]]; then ./configure --prefix=$VIRTUAL_ENV --with-python3; fi -# - if [[ $TRAVIS_PYTHON_VERSION == "pypy3" ]]; then ./configure --prefix=$VIRTUAL_ENV --with-python3; fi -# - make && make install + - echo "$TRAVIS_PYTHON_VERSION" + # Sphinx required to build the xapian python bindings. Use 1.8.5 on + # older python and newest on newer. + - if [[ $TRAVIS_PYTHON_VERSION == "2."* ]]; then pip install sphinx==1.8.5; fi + - if [[ $TRAVIS_PYTHON_VERSION == '3.'* ]] ; then pip install sphinx; fi + - if [[ $TRAVIS_PYTHON_VERSION == "nightly" ]]; then pip install sphinx; fi + - XAPIAN_VER=$(dpkg -l libxapian-dev | tail -n 1 | awk '{print $3}' | cut -d '-' -f 1); echo $XAPIAN_VER + - cd /tmp + - curl -s -O https://oligarchy.co.uk/xapian/$XAPIAN_VER/xapian-bindings-$XAPIAN_VER.tar.xz + - tar -Jxvf xapian-bindings-$XAPIAN_VER.tar.xz + - cd xapian-bindings-$XAPIAN_VER/ + - echo $TRAVIS_PYTHON_VERSION + - if [[ $TRAVIS_PYTHON_VERSION == "2."* ]]; then ./configure --prefix=$VIRTUAL_ENV --with-python; fi + - if [[ $TRAVIS_PYTHON_VERSION == "3."* ]]; then ./configure --prefix=$VIRTUAL_ENV --with-python3; fi + - if [[ $TRAVIS_PYTHON_VERSION == "nightly" ]]; then ./configure --prefix=$VIRTUAL_ENV --with-python3; fi + - if [[ $TRAVIS_PYTHON_VERSION == "pypy3" ]]; then ./configure --prefix=$VIRTUAL_ENV --with-python3; fi + - make && make install - PATH=$VIRTUAL_ENV/bin:$PATH
