summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2017-08-04 11:38:53 -0700
committerDylan Baker <dylan@pnwbakers.com>2017-08-14 09:29:28 -0700
commitec504a44af0420669c0ce28f35679835e3f9e32c (patch)
treeab15f0ed303607296701f30068bef976037038ca /.travis.yml
parent823342f5484db142ad8e6deecee3a09c03684c85 (diff)
travis: build new version of gpgme
This breaks the build with pygpgme, but it seems like too big of an unrelated change to shove in with the main pygpgme -> gpg patch.
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml39
1 files changed, 35 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml
index dd83f4fa..cb863a5d 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -25,9 +25,6 @@ env:
addons:
apt:
packages:
- # The gpgme build files are needed by the gpgme python module
- # (a dependency of alot).
- - libgpgme11-dev
# The notmuch libs are needed to actually run alot. But currently the
# available version is not compatible with alot, so we have to build
# from source.
@@ -38,6 +35,9 @@ addons:
- zlib1g-dev
- libgmime-2.6-dev
+ # dependencies to build the python-gpg module from source
+ - swig
+
# Build notmuch and the python notmuch libs manually. The versions of the
# notmuch library and the python module which are available in the 12.04 and
# 14.04 Ubuntu repos do not match and do not fullfill the version requirement
@@ -48,6 +48,10 @@ before_install: |
# Build with ccache to speed up rebuilds.
export PATH=/usr/lib/ccache:$PATH
+ # Set paths
+ export LD_LIBRARY_PATH=$HOME/.local/lib
+ export PKG_CONFIG_PATH=$HOME/.local/lib/pkgconfig
+
# Clone the notmuch repository and move into it.
git clone git://notmuchmail.org/git/notmuch --depth 1
cd notmuch
@@ -57,7 +61,6 @@ before_install: |
make -j3 -l2
make install
# Export the library search path.
- export LD_LIBRARY_PATH=$HOME/.local/lib
# Install the python bindings.
cd bindings/python
pip install .
@@ -66,6 +69,34 @@ before_install: |
pip install coverage codacy-coverage
# Move out of the notmuch dir again.
cd ../../..
+
+ # Build GPGME since the version shipping is far too old
+
+ # needs a newer version of gpg-errors
+ curl https://gnupg.org/ftp/gcrypt/libgpg-error/libgpg-error-1.27.tar.bz2 -o gpgerror.tar.bz2
+ tar xvf gpgerror.tar.bz2
+ pushd libgpg-error-1.27
+ ./configure --prefix=$HOME/.local
+ make -j3 -l2
+ make install
+ popd
+
+ # and a newer version of libassaun
+ curl https://gnupg.org/ftp/gcrypt/libassuan/libassuan-2.4.3.tar.bz2 -o assuan.tar.bz2
+ tar xf assuan.tar.bz2
+ pushd libassuan-2.4.3
+ ./configure --prefix=$HOME/.local
+ make -j3 -l2
+ make install
+ popd
+
+ curl https://gnupg.org/ftp/gcrypt/gpgme/gpgme-1.9.0.tar.bz2 -o gpgme.tar.bz2
+ tar xf gpgme.tar.bz2
+ pushd gpgme-1.9.0
+ ./configure --prefix=$HOME/.local
+ make -j3 -l2
+ make install
+ popd
fi
# Prepare a minimal config file for the test.