Merge pull request #1716 from kleisauke/ubuntu-18.04-travis
Travis improvements
This commit is contained in:
commit
83a7970a7d
79
.travis.yml
79
.travis.yml
@ -9,13 +9,10 @@ addons:
|
|||||||
apt:
|
apt:
|
||||||
update: true
|
update: true
|
||||||
sources: &common_sources
|
sources: &common_sources
|
||||||
# use a more recent imagemagick instead of 6.8.9-9
|
|
||||||
- sourceline: 'ppa:cran/imagemagick'
|
|
||||||
# add support for HEIF files
|
# add support for HEIF files
|
||||||
- sourceline: 'ppa:strukturag/libheif'
|
- sourceline: 'ppa:strukturag/libheif'
|
||||||
- sourceline: 'ppa:strukturag/libde265'
|
- sourceline: 'ppa:strukturag/libde265'
|
||||||
packages: &common_packages
|
packages: &common_packages
|
||||||
- automake
|
|
||||||
- gtk-doc-tools
|
- gtk-doc-tools
|
||||||
- gobject-introspection
|
- gobject-introspection
|
||||||
- python3-pip
|
- python3-pip
|
||||||
@ -24,17 +21,15 @@ addons:
|
|||||||
- libfftw3-dev
|
- libfftw3-dev
|
||||||
- libexif-dev
|
- libexif-dev
|
||||||
- libjpeg-turbo8-dev
|
- libjpeg-turbo8-dev
|
||||||
- libpng12-dev
|
- libpng-dev
|
||||||
- libwebp-dev
|
- libwebp-dev
|
||||||
# missing on xenial, unfortunately
|
|
||||||
# - libwebpmux2
|
|
||||||
- libtiff5-dev
|
- libtiff5-dev
|
||||||
- libheif-dev
|
- libheif-dev
|
||||||
- libexpat1-dev
|
- libexpat1-dev
|
||||||
- libmagick++-dev
|
- libcfitsio-dev
|
||||||
- libcfitsio3-dev
|
- libgsl-dev
|
||||||
- libgsl0-dev
|
|
||||||
- libmatio-dev
|
- libmatio-dev
|
||||||
|
- libnifti-dev
|
||||||
- liborc-0.4-dev
|
- liborc-0.4-dev
|
||||||
- liblcms2-dev
|
- liblcms2-dev
|
||||||
- libpoppler-glib-dev
|
- libpoppler-glib-dev
|
||||||
@ -73,23 +68,36 @@ jobs:
|
|||||||
fast_finish: true
|
fast_finish: true
|
||||||
include:
|
include:
|
||||||
- os: linux
|
- os: linux
|
||||||
sudo: required
|
dist: bionic
|
||||||
dist: xenial
|
|
||||||
compiler: gcc
|
compiler: gcc
|
||||||
env:
|
name: "Ubuntu 18.04 / GCC 10"
|
||||||
- JPEG=/usr
|
|
||||||
- JOBS=`nproc`
|
|
||||||
- WITH_MAGICK=yes
|
|
||||||
cache: ccache
|
|
||||||
- os: linux
|
|
||||||
sudo: required
|
|
||||||
dist: xenial
|
|
||||||
compiler: clang
|
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
sources:
|
sources:
|
||||||
- *common_sources
|
- *common_sources
|
||||||
- sourceline: deb https://apt.llvm.org/xenial/ llvm-toolchain-xenial-10 main
|
- ubuntu-toolchain-r-test
|
||||||
|
packages:
|
||||||
|
- *common_packages
|
||||||
|
- libmagick++-dev
|
||||||
|
- g++-10
|
||||||
|
env:
|
||||||
|
- JPEG=/usr
|
||||||
|
- JOBS=`nproc`
|
||||||
|
- WITH_MAGICK=yes
|
||||||
|
- CC="gcc-10"
|
||||||
|
- CXX="g++-10"
|
||||||
|
- LDSHARED="$CC -shared"
|
||||||
|
- CFLAGS="-Wcast-function-type"
|
||||||
|
cache: ccache
|
||||||
|
- os: linux
|
||||||
|
dist: bionic
|
||||||
|
compiler: clang
|
||||||
|
name: "Ubuntu 18.04 / Clang 10 with ASan and UBSan"
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
sources:
|
||||||
|
- *common_sources
|
||||||
|
- sourceline: deb https://apt.llvm.org/bionic/ llvm-toolchain-bionic-10 main
|
||||||
key_url: https://apt.llvm.org/llvm-snapshot.gpg.key
|
key_url: https://apt.llvm.org/llvm-snapshot.gpg.key
|
||||||
packages:
|
packages:
|
||||||
- *common_packages
|
- *common_packages
|
||||||
@ -99,32 +107,27 @@ jobs:
|
|||||||
- JPEG=/usr
|
- JPEG=/usr
|
||||||
- JOBS=`nproc`
|
- JOBS=`nproc`
|
||||||
- WITH_MAGICK=no
|
- WITH_MAGICK=no
|
||||||
- LDSHARED="clang -shared"
|
- CC="clang-10"
|
||||||
|
- CXX="clang++-10"
|
||||||
|
- LDSHARED="$CC -shared"
|
||||||
- CFLAGS="-fsanitize=address,undefined -fno-omit-frame-pointer -fopenmp -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION"
|
- CFLAGS="-fsanitize=address,undefined -fno-omit-frame-pointer -fopenmp -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION"
|
||||||
|
- CXXFLAGS="$CFLAGS"
|
||||||
- LDFLAGS="-fsanitize=address,undefined -shared-libasan -fopenmp=libomp"
|
- LDFLAGS="-fsanitize=address,undefined -shared-libasan -fopenmp=libomp"
|
||||||
- ASAN_DSO=`clang-10 -print-file-name=libclang_rt.asan-x86_64.so`
|
- ASAN_DSO=`$CC -print-file-name=libclang_rt.asan-x86_64.so`
|
||||||
- ASAN_SYMBOLIZER_PATH=`which llvm-symbolizer-10`
|
- ASAN_SYMBOLIZER_PATH=`which llvm-symbolizer-10`
|
||||||
- ASAN_OPTIONS="suppressions=$TRAVIS_BUILD_DIR/suppressions/asan.supp"
|
- ASAN_OPTIONS="suppressions=$TRAVIS_BUILD_DIR/suppressions/asan.supp"
|
||||||
- LSAN_OPTIONS="suppressions=$TRAVIS_BUILD_DIR/suppressions/lsan.supp"
|
- LSAN_OPTIONS="suppressions=$TRAVIS_BUILD_DIR/suppressions/lsan.supp"
|
||||||
- UBSAN_OPTIONS="suppressions=$TRAVIS_BUILD_DIR/suppressions/ubsan.supp"
|
- UBSAN_OPTIONS="suppressions=$TRAVIS_BUILD_DIR/suppressions/ubsan.supp:print_stacktrace=1"
|
||||||
- LD_LIBRARY_PATH="`dirname $ASAN_DSO`:/usr/lib/llvm-10/lib:$LD_LIBRARY_PATH"
|
- LD_LIBRARY_PATH="/usr/lib/llvm-10/lib:`dirname $ASAN_DSO`"
|
||||||
- DLCLOSE_PRELOAD="$TRAVIS_BUILD_DIR/dlclose.so"
|
- DLCLOSE_PRELOAD="$TRAVIS_BUILD_DIR/dlclose.so"
|
||||||
install:
|
before_script:
|
||||||
# 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
|
|
||||||
# switch to Clang 10 using update-alternatives
|
|
||||||
- sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-10 100
|
|
||||||
--slave /usr/bin/clang++ clang++ /usr/bin/clang++-10
|
|
||||||
# workaround for https://github.com/google/sanitizers/issues/89
|
# workaround for https://github.com/google/sanitizers/issues/89
|
||||||
# otherwise libIlmImf-2_2.so ends up as <unknown module>
|
# otherwise libIlmImf-2_2.so ends up as <unknown module>
|
||||||
- echo -e '#include <stdio.h>\nint dlclose(void*handle){return 0;}' | clang -shared -xc -odlclose.so -
|
- echo -e '#include <stdio.h>\nint dlclose(void*handle){return 0;}' | $CC -shared -xc -odlclose.so -
|
||||||
cache: ccache
|
cache: ccache
|
||||||
- os: osx
|
- os: osx
|
||||||
osx_image: xcode11
|
osx_image: xcode11
|
||||||
|
name: "macOS 10.14.6 / GCC 9"
|
||||||
env:
|
env:
|
||||||
- JPEG=/usr/local/opt/jpeg-turbo
|
- JPEG=/usr/local/opt/jpeg-turbo
|
||||||
- JOBS="`sysctl -n hw.ncpu`"
|
- JOBS="`sysctl -n hw.ncpu`"
|
||||||
@ -136,7 +139,7 @@ jobs:
|
|||||||
- CXX="g++-9"
|
- CXX="g++-9"
|
||||||
cache: ccache
|
cache: ccache
|
||||||
|
|
||||||
before_script:
|
install:
|
||||||
- $PYTHON -m pip download --no-deps https://github.com/libvips/pyvips/archive/$PYVIPS_VERSION.tar.gz
|
- $PYTHON -m pip download --no-deps https://github.com/libvips/pyvips/archive/$PYVIPS_VERSION.tar.gz
|
||||||
- tar xf $PYVIPS_VERSION.tar.gz
|
- tar xf $PYVIPS_VERSION.tar.gz
|
||||||
- $PYTHON -m pip install --user --upgrade pyvips-$PYVIPS_VERSION/[test]
|
- $PYTHON -m pip install --user --upgrade pyvips-$PYVIPS_VERSION/[test]
|
||||||
@ -150,7 +153,7 @@ before_script:
|
|||||||
|
|
||||||
script:
|
script:
|
||||||
- make -j$JOBS -s -k V=0 VERBOSE=1 check
|
- make -j$JOBS -s -k V=0 VERBOSE=1 check
|
||||||
- LD_LIBRARY_PATH=$PWD/libvips/.libs
|
- LD_LIBRARY_PATH="$PWD/libvips/.libs:$LD_LIBRARY_PATH"
|
||||||
DYLD_LIBRARY_PATH=$PWD/libvips/.libs
|
DYLD_LIBRARY_PATH=$PWD/libvips/.libs
|
||||||
LD_PRELOAD="$ASAN_DSO $DLCLOSE_PRELOAD"
|
LD_PRELOAD="$ASAN_DSO $DLCLOSE_PRELOAD"
|
||||||
$PYTHON -m pytest -sv --log-cli-level=WARNING test/test-suite
|
$PYTHON -m pytest -sv --log-cli-level=WARNING test/test-suite
|
||||||
|
@ -223,7 +223,7 @@ static void *vips_gsf_tree_close( VipsGsfDirectory *tree );
|
|||||||
static void *
|
static void *
|
||||||
vips_gsf_tree_close_cb( void *item, void *a, void *b )
|
vips_gsf_tree_close_cb( void *item, void *a, void *b )
|
||||||
{
|
{
|
||||||
VipsGsfDirectory *tree = (VipsGsfDirectory *) tree;
|
VipsGsfDirectory *tree = (VipsGsfDirectory *) item;
|
||||||
|
|
||||||
return( vips_gsf_tree_close( tree ) );
|
return( vips_gsf_tree_close( tree ) );
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
leak:python2.7
|
leak:python2.7
|
||||||
leak:python3
|
leak:python3
|
||||||
|
leak:bash
|
||||||
leak:libfontconfig.so
|
leak:libfontconfig.so
|
||||||
leak:libglib-2.0.so
|
leak:libglib-2.0.so
|
||||||
leak:libIlmImf-2_2.so
|
leak:libIlmImf-2_2.so
|
||||||
|
Loading…
x
Reference in New Issue
Block a user