diff .travis.yml @ 5373:faf3f01ef446

Run into a roadblock with trying to install python 3 compatible xapian. Leaving my attempt in as commented out code for next person to attempt. Reinstaled the code that works with python 2 environment so CI can be used for testing python 2 at least.
author John Rouillard <rouilj@ieee.org>
date Fri, 20 Jul 2018 21:16:49 -0400
parents 5e5f1dfb1596
children 1ad46057ae4a
line wrap: on
line diff
--- a/.travis.yml	Fri Jul 20 20:51:20 2018 -0400
+++ b/.travis.yml	Fri Jul 20 21:16:49 2018 -0400
@@ -12,7 +12,9 @@
 addons:
   apt:
     packages:
-      # required for install of 1.3.7 version of xapian??
+      # required for install of xapian-bindings-1.2.16
+      - libxapian-dev
+      # required for install of 1.3.7 version of xapian
       - python-sphinx
       # Required to install pyme
       - libgpgme11-dev
@@ -20,14 +22,29 @@
 
 before_install:
   - cd /tmp
+  # commented out section of xapian installing core and bindings.
   # install core 1.3.7 as version in trusty deb is 1.2. need 1.3 for python 3.
-  - curl -s -O https://oligarchy.co.uk/xapian/1.3.7/xapian-core-1.3.7.tar.xz
-  - tar -Jxvf xapian-core-1.3.7.tar.xz
-  - cd xapian-core-1.3.7/
-  - ./configure && make && sudo make install
-  - curl -s -O https://oligarchy.co.uk/xapian/1.3.7/xapian-bindings-1.3.7.tar.xz
-  - tar -Jxvf xapian-bindings-1.3.7.tar.xz
-  - cd xapian-bindings-1.3.7/
+  #- curl -s -O https://oligarchy.co.uk/xapian/1.3.7/xapian-core-1.3.7.tar.xz
+  #- tar -Jxvf xapian-core-1.3.7.tar.xz
+  #- cd xapian-core-1.3.7/
+  #- ./configure && make && sudo make install
+  #- cd /tmp
+  #- curl -s -O https://oligarchy.co.uk/xapian/1.3.7/xapian-bindings-1.3.7.tar.xz
+  #- tar -Jxvf xapian-bindings-1.3.7.tar.xz
+  #- cd xapian-bindings-1.3.7/
+  #- ./configure --prefix=$VIRTUAL_ENV --with-python && make && make install
+  # the above fails on python 2.7 with:
+  # ImportError: libxapian-1.3.so.8: cannot open shared object file: 
+  #      No such file or directory
+  # That library is installed by xapian-core-1.3.7 above. My guess
+  #  is that the virtualenv is created by travis software before
+  #  before_install is called and xapian-core is installed.
+  #  So libxapian is not present in the virtualenv python install.
+  # See https://travis-ci.org/roundup-tracker/roundup/builds/406481321
+  # Install 1.2.16 xapian-bindings compatible with xapian-dev in ubuntu trusty
+  - curl -s -O https://oligarchy.co.uk/xapian/1.2.16/xapian-bindings-1.2.16.tar.xz
+  - tar -Jxvf xapian-bindings-1.2.16.tar.xz
+  - cd xapian-bindings-1.2.16/
   - ./configure --prefix=$VIRTUAL_ENV --with-python && make && make install
 
   # change back to the checked out repository directory

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