2014-05-19 13:54:04 +02:00
|
|
|
language: cpp
|
2016-06-03 00:50:53 +02:00
|
|
|
|
2014-05-19 13:54:04 +02:00
|
|
|
before_script:
|
2018-09-21 18:05:47 +02:00
|
|
|
- $PYTHON -m pip download --no-deps https://github.com/libvips/pyvips/archive/$PYVIPS_VERSION.tar.gz
|
2018-06-13 23:36:07 +02:00
|
|
|
- tar xf $PYVIPS_VERSION.tar.gz
|
|
|
|
- $PYTHON -m pip install --user --upgrade pyvips-$PYVIPS_VERSION/[test]
|
2016-08-05 15:58:27 +02:00
|
|
|
- ./autogen.sh
|
2016-06-03 00:50:53 +02:00
|
|
|
--disable-dependency-tracking
|
|
|
|
--with-jpeg-includes=$JPEG/include
|
|
|
|
--with-jpeg-libraries=$JPEG/lib
|
2017-03-01 18:37:55 +01:00
|
|
|
- make -j$JOBS -s
|
2016-05-08 21:51:07 +02:00
|
|
|
script:
|
2019-03-14 23:47:22 +01:00
|
|
|
- make -j$JOBS -s -k V=0 VERBOSE=1 check
|
2018-06-13 23:36:07 +02:00
|
|
|
- LD_LIBRARY_PATH=$PWD/libvips/.libs
|
|
|
|
DYLD_LIBRARY_PATH=$PWD/libvips/.libs
|
2019-03-14 23:47:22 +01:00
|
|
|
LD_PRELOAD=$ASAN_DSO
|
2019-01-02 11:28:41 +01:00
|
|
|
$PYTHON -m pytest -v test/test-suite
|
2016-06-03 00:50:53 +02:00
|
|
|
|
|
|
|
matrix:
|
2018-06-14 17:15:43 +02:00
|
|
|
allow_failures:
|
|
|
|
- os: osx
|
2016-06-03 00:50:53 +02:00
|
|
|
fast_finish: true
|
|
|
|
include:
|
|
|
|
- os: linux
|
|
|
|
sudo: required
|
2018-12-17 14:25:13 +01:00
|
|
|
dist: xenial
|
2019-03-14 23:47:22 +01:00
|
|
|
compiler: gcc
|
2016-06-03 00:50:53 +02:00
|
|
|
env:
|
2018-06-13 23:36:07 +02:00
|
|
|
- PYTHON=python2
|
|
|
|
- PYVIPS_VERSION=master
|
2016-06-03 00:50:53 +02:00
|
|
|
- JPEG=/usr
|
|
|
|
- JOBS=`nproc`
|
|
|
|
cache: ccache
|
|
|
|
|
2019-03-14 23:47:22 +01:00
|
|
|
- os: linux
|
|
|
|
sudo: required
|
|
|
|
dist: xenial
|
|
|
|
compiler: clang
|
|
|
|
env:
|
|
|
|
- PYTHON=python2
|
|
|
|
- PYVIPS_VERSION=master
|
|
|
|
- JPEG=/usr
|
|
|
|
- JOBS=`nproc`
|
2019-08-02 12:23:39 +02:00
|
|
|
- CFLAGS="-fsanitize=address,undefined -fno-omit-frame-pointer -fopenmp -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION"
|
|
|
|
- LDFLAGS="-fsanitize=address,undefined -dynamic-asan -fopenmp=libiomp5"
|
2019-03-14 23:47:22 +01:00
|
|
|
- ASAN_DSO=/usr/local/clang-7.0.0/lib/clang/7.0.0/lib/linux/libclang_rt.asan-x86_64.so
|
|
|
|
- LSAN_OPTIONS="suppressions=$TRAVIS_BUILD_DIR/lsan.supp"
|
|
|
|
install:
|
|
|
|
# add support for WebP
|
|
|
|
- wget http://archive.ubuntu.com/ubuntu/pool/main/libw/libwebp/libwebp-dev_0.6.1-2_amd64.deb
|
|
|
|
- wget http://archive.ubuntu.com/ubuntu/pool/main/libw/libwebp/libwebpdemux2_0.6.1-2_amd64.deb
|
|
|
|
- wget http://archive.ubuntu.com/ubuntu/pool/main/libw/libwebp/libwebpmux3_0.6.1-2_amd64.deb
|
|
|
|
- wget http://archive.ubuntu.com/ubuntu/pool/main/libw/libwebp/libwebp6_0.6.1-2_amd64.deb
|
|
|
|
- sudo dpkg -i *.deb
|
|
|
|
cache: ccache
|
|
|
|
|
2016-06-03 00:50:53 +02:00
|
|
|
- os: osx
|
2018-12-17 15:07:14 +01:00
|
|
|
osx_image: xcode10.1
|
2016-06-03 00:50:53 +02:00
|
|
|
env:
|
2018-06-13 23:36:07 +02:00
|
|
|
- PYTHON=python2
|
|
|
|
- PYVIPS_VERSION=master
|
|
|
|
- JPEG=/usr/local
|
2016-06-03 00:50:53 +02:00
|
|
|
- JOBS="`sysctl -n hw.ncpu`"
|
|
|
|
- PATH="/usr/local/opt/ccache/libexec:$PATH"
|
2018-06-13 23:36:07 +02:00
|
|
|
- HOMEBREW_NO_AUTO_UPDATE=1
|
2016-06-03 00:50:53 +02:00
|
|
|
cache: ccache
|
2017-09-17 18:23:25 +02:00
|
|
|
|
2019-01-02 11:42:17 +01:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
update: true
|
2019-01-07 19:10:21 +01:00
|
|
|
sources:
|
2019-08-09 11:22:47 +02:00
|
|
|
# use a more recent imagemagick instead of 6.8.9-9
|
2019-01-07 19:10:21 +01:00
|
|
|
- sourceline: 'ppa:opencpu/imagemagick'
|
2019-02-17 20:51:01 +01:00
|
|
|
# add support for HEIF files
|
|
|
|
- sourceline: 'ppa:strukturag/libheif'
|
|
|
|
- sourceline: 'ppa:strukturag/libde265'
|
2019-01-02 11:42:17 +01:00
|
|
|
packages:
|
|
|
|
- automake
|
|
|
|
- gtk-doc-tools
|
|
|
|
- gobject-introspection
|
|
|
|
- libfftw3-dev
|
|
|
|
- libexif-dev
|
|
|
|
- libjpeg-turbo8-dev
|
|
|
|
- libpng12-dev
|
|
|
|
- libwebp-dev
|
|
|
|
# missing on xenial, unfortunately
|
|
|
|
# - libwebpmux2
|
|
|
|
- libtiff5-dev
|
2019-02-17 20:51:01 +01:00
|
|
|
- libheif-dev
|
2019-01-02 11:42:17 +01:00
|
|
|
- libexpat1-dev
|
|
|
|
- libmagick++-dev
|
|
|
|
- bc
|
|
|
|
- libcfitsio3-dev
|
|
|
|
- libgsl0-dev
|
|
|
|
- libmatio-dev
|
|
|
|
- liborc-0.4-dev
|
|
|
|
- liblcms2-dev
|
|
|
|
- libpoppler-glib-dev
|
|
|
|
- librsvg2-dev
|
|
|
|
- libgif-dev
|
|
|
|
- libopenexr-dev
|
|
|
|
- libpango1.0-dev
|
|
|
|
- libgsf-1-dev
|
|
|
|
- libopenslide-dev
|
|
|
|
- libffi-dev
|
2019-03-14 23:47:22 +01:00
|
|
|
- libiomp-dev
|
2019-01-02 11:42:17 +01:00
|
|
|
homebrew:
|
|
|
|
packages:
|
|
|
|
- ccache
|
|
|
|
- gtk-doc
|
|
|
|
- gobject-introspection
|
|
|
|
- fftw
|
|
|
|
- libexif
|
|
|
|
- webp
|
|
|
|
- imagemagick
|
|
|
|
- cfitsio
|
|
|
|
- gsl
|
|
|
|
- libmatio
|
|
|
|
- orc
|
|
|
|
- little-cms2
|
|
|
|
- poppler
|
|
|
|
- librsvg
|
|
|
|
- openexr
|
|
|
|
- pango
|
|
|
|
- libgsf
|
|
|
|
- openslide
|