diff .travis.yml @ 6710:f2a47db667cd

Try using OS python xapian rather than building.
author John Rouillard <rouilj@ieee.org>
date Tue, 21 Jun 2022 21:17:50 -0400
parents 013607b29c0c
children 53fced773a5b
line wrap: on
line diff
--- a/.travis.yml	Tue Jun 21 21:08:00 2022 -0400
+++ b/.travis.yml	Tue Jun 21 21:17:50 2022 -0400
@@ -44,32 +44,34 @@
     #  - 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:
-  - 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
+  - if [[ $TRAVIS_PYTHON_VERSION == "2."* ]]; then apt-get install python-xapian; else apt-get install python3-xapian
+
+#  - 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
 
   - PATH=$VIRTUAL_ENV/bin:$PATH
 

Roundup Issue Tracker: http://roundup-tracker.org/