comparison .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
comparison
equal deleted inserted replaced
6709:013607b29c0c 6710:f2a47db667cd
42 apt: 42 apt:
43 #sources: 43 #sources:
44 # - sourceline: ppa:xapian-backports/ppa 44 # - sourceline: ppa:xapian-backports/ppa
45 45
46 packages: 46 packages:
47 # Required to build/install the xapian-binding 47 # # Required to build/install the xapian-binding
48 - libxapian-dev 48 # - libxapian-dev
49 # Required to install gpg 49 # # Required to install gpg
50 - swig 50 - swig
51 # Required to build gpgme. 51 # Required to build gpgme.
52 - gpgsm 52 - gpgsm
53 53
54 before_install: 54 before_install:
55 - echo "$TRAVIS_PYTHON_VERSION" 55 - if [[ $TRAVIS_PYTHON_VERSION == "2."* ]]; then apt-get install python-xapian; else apt-get install python3-xapian
56 # Sphinx required to build the xapian python bindings. Use 1.8.5 on 56
57 # older python and newest on newer. 57 # - echo "$TRAVIS_PYTHON_VERSION"
58 - if [[ $TRAVIS_PYTHON_VERSION == "2."* ]]; then pip install sphinx==1.8.5; fi 58 # # Sphinx required to build the xapian python bindings. Use 1.8.5 on
59 - if [[ $TRAVIS_PYTHON_VERSION == '3.'* ]] ; then pip install sphinx; fi 59 # # older python and newest on newer.
60 - if [[ $TRAVIS_PYTHON_VERSION == "nightly" ]]; then pip install sphinx; fi 60 # - if [[ $TRAVIS_PYTHON_VERSION == "2."* ]]; then pip install sphinx==1.8.5; fi
61 - sudo apt-get update && sudo apt-get upgrade libxapian-dev libxapian 61 # - if [[ $TRAVIS_PYTHON_VERSION == '3.'* ]] ; then pip install sphinx; fi
62 - XAPIAN_VER=$(dpkg -l libxapian-dev | tail -n 1 | awk '{print $3}' | cut -d '-' -f 1); echo $XAPIAN_VER 62 # - if [[ $TRAVIS_PYTHON_VERSION == "nightly" ]]; then pip install sphinx; fi
63 - cd /tmp 63 # - sudo apt-get update && sudo apt-get upgrade libxapian-dev libxapian
64 - curl -s -O https://oligarchy.co.uk/xapian/$XAPIAN_VER/xapian-bindings-$XAPIAN_VER.tar.xz 64 # - XAPIAN_VER=$(dpkg -l libxapian-dev | tail -n 1 | awk '{print $3}' | cut -d '-' -f 1); echo $XAPIAN_VER
65 - tar -Jxvf xapian-bindings-$XAPIAN_VER.tar.xz 65 # - cd /tmp
66 - cd xapian-bindings-$XAPIAN_VER/ 66 # - curl -s -O https://oligarchy.co.uk/xapian/$XAPIAN_VER/xapian-bindings-$XAPIAN_VER.tar.xz
67 - echo $TRAVIS_PYTHON_VERSION 67 # - tar -Jxvf xapian-bindings-$XAPIAN_VER.tar.xz
68 - if [[ $TRAVIS_PYTHON_VERSION == "2."* ]]; then ./configure --prefix=$VIRTUAL_ENV --with-python; fi 68 # - cd xapian-bindings-$XAPIAN_VER/
69 - if [[ $TRAVIS_PYTHON_VERSION == "3."* ]]; then ./configure --prefix=$VIRTUAL_ENV --with-python3; fi 69 # - echo $TRAVIS_PYTHON_VERSION
70 - if [[ $TRAVIS_PYTHON_VERSION == "nightly" ]]; then ./configure --prefix=$VIRTUAL_ENV --with-python3; fi 70 # - if [[ $TRAVIS_PYTHON_VERSION == "2."* ]]; then ./configure --prefix=$VIRTUAL_ENV --with-python; fi
71 - if [[ $TRAVIS_PYTHON_VERSION == "pypy3" ]]; then ./configure --prefix=$VIRTUAL_ENV --with-python3; fi 71 # - if [[ $TRAVIS_PYTHON_VERSION == "3."* ]]; then ./configure --prefix=$VIRTUAL_ENV --with-python3; fi
72 - make && make install 72 # - if [[ $TRAVIS_PYTHON_VERSION == "nightly" ]]; then ./configure --prefix=$VIRTUAL_ENV --with-python3; fi
73 # - if [[ $TRAVIS_PYTHON_VERSION == "pypy3" ]]; then ./configure --prefix=$VIRTUAL_ENV --with-python3; fi
74 # - make && make install
73 75
74 - PATH=$VIRTUAL_ENV/bin:$PATH 76 - PATH=$VIRTUAL_ENV/bin:$PATH
75 77
76 # libgpg-error 78 # libgpg-error
77 - LIBGPG_ERROR_VERSION=1.43 79 - LIBGPG_ERROR_VERSION=1.43

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