comparison .github/workflows/ci-test.yml @ 6867:25487b21f812

add xapian build/install
author John Rouillard <rouilj@ieee.org>
date Thu, 01 Sep 2022 01:08:41 -0400
parents a3ad2d1a4ea1
children 5aee1b6ffb52
comparison
equal deleted inserted replaced
6866:a3ad2d1a4ea1 6867:25487b21f812
95 set -xv 95 set -xv
96 pip install zstd || true 96 pip install zstd || true
97 if [[ "$PYTHON_VERSION" != "2."* ]]; then 97 if [[ "$PYTHON_VERSION" != "2."* ]]; then
98 pip install Markdown; fi 98 pip install Markdown; fi
99 99
100 - name: Install xapian
101 continue-on-error: true
102 run: |
103 sudo apt-get install libxapian-dev
104 # Sphinx required to build the xapian python bindings. Use 1.8.5 on
105 # older python and newest on newer.
106 if [[ $PYTHON_VERSION == "2."* ]]; then pip install sphinx==1.8.5; fi
107 if [[ $PYTHON_VERSION == '3.'* ]] ; then pip install sphinx; fi
108 XAPIAN_VER=$(dpkg -l libxapian-dev | tail -n 1 | awk '{print $3}' | cut -d '-' -f 1); echo $XAPIAN_VER
109 cd /tmp
110 curl -s -O https://oligarchy.co.uk/xapian/$XAPIAN_VER/xapian-bindings-$XAPIAN_VER.tar.xz
111 tar -Jxvf xapian-bindings-$XAPIAN_VER.tar.xz
112 cd xapian-bindings-$XAPIAN_VER/
113 if [[ $PYTHON_VERSION == "2."* ]]; then ./configure --prefix=$VIRTUAL_ENV --with-python --disable-documentation; fi
114 # edit the configure script.
115 # distutils.sysconfig.get_config_vars('SO') doesn't work for
116 # 3.11 or newer.
117 # Change distutils.sysconfig... to just sysconfig and SO
118 # to EXT_SUFFIX to get valid value.
119 if [[ $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
120 case "$PYTHON_VERSION" in nightly) echo skipping xapian build;; *) make && make install; esac
121
100 - name: Install pytest and other packages needed for running tests 122 - name: Install pytest and other packages needed for running tests
101 run: pip install codecov flake8 pytest pytest-cov requests 123 run: pip install codecov flake8 pytest pytest-cov requests
102 124
103 - name: Test build roundup and install locale so lang tests work. 125 - name: Test build roundup and install locale so lang tests work.
104 run: | 126 run: |

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