fix(ci): try new install

master
Tomas 6 years ago
parent bd03c5c3e2
commit 91e793fcba

@ -31,61 +31,108 @@ cache:
addons: addons:
apt: apt:
packages: update: true
- gobject-introspection sources: &common_sources
# use a more recent imagemagick instead of 6.8.9-9
- sourceline: 'ppa:cran/imagemagick'
- sourceline: 'ppa:strukturag/libheif'
- sourceline: 'ppa:strukturag/libde265'
packages: &common_packages
- automake
- gtk-doc-tools - gtk-doc-tools
- libcfitsio3-dev - gobject-introspection
- python3-pip
- python3-setuptools
- python3-wheel
- libfftw3-dev - libfftw3-dev
- libgif-dev - libexif-dev
- libgs-dev - libjpeg-turbo8-dev
- libgsf-1-dev - libpng12-dev
- libwebp-dev
# missing on xenial, unfortunately
# - libwebpmux2
- libtiff5-dev
- libheif-dev
- libexpat1-dev
- libmagick++-dev
- libcfitsio3-dev
- libgsl0-dev
- libmatio-dev - libmatio-dev
- libopenslide-dev
- liborc-0.4-dev - liborc-0.4-dev
- libpango1.0-dev - liblcms2-dev
- libpoppler-glib-dev - libpoppler-glib-dev
- libwebp-dev - librsvg2-dev
- libgif-dev
- libopenexr-dev
- libpango1.0-dev
- libgsf-1-dev
- libopenslide-dev
- libffi-dev
# VIPS 8.3.3 requires Poppler 0.30 which is not released on Trusty. # VIPS 8.3.3 requires Poppler 0.30 which is not released on Trusty.
before_install: before_install:
- > - >
test "$LIBVIPS" != "master" -a "$LIBVIPS" \< "8.4" \ cd /tmp && \
&& wget http://www.vips.ecs.soton.ac.uk/supported/${LIBVIPS%.*}/vips-${LIBVIPS}.tar.gz -O vips.tgz \ curl -fsSLO https://github.com/libvips/libvips/releases/download/v${LIBVIPS}/vips-${LIBVIPS}.tar.gz && \
|| echo ":-)" tar zvxf vips-${LIBVIPS}.tar.gz && \
- > cd /tmp/vips-${LIBVIPS} && \
test "$LIBVIPS" != "master" -a "$LIBVIPS" \> "8.4" \ CFLAGS="-g -O3" CXXFLAGS="-D_GLIBCXX_USE_CXX11_ABI=0 -g -O3" \
&& wget https://github.com/libvips/libvips/archive/v${LIBVIPS}.tar.gz -O vips.tgz \ ./configure \
|| echo ":-)" --disable-debug \
- > --disable-dependency-tracking \
test $LIBVIPS == "master" \ --disable-introspection \
&& wget https://github.com/libvips/libvips/archive/${LIBVIPS}.tar.gz -O vips.tgz \ --disable-static \
|| echo ":-)" --enable-gtk-doc-html=no \
- mkdir libvips --enable-gtk-doc=no \
- tar xf vips.tgz -C libvips --strip-components 1 --enable-pyvips8=no \
- cd libvips --prefix=$HOME/libvips && \
- test -f autogen.sh && ./autogen.sh || ./bootstrap.sh make && \
- > make install && \
CXXFLAGS=-D_GLIBCXX_USE_CXX11_ABI=0 ldconfig \
./configure
--disable-debug
--disable-dependency-tracking
--disable-introspection
--disable-static
--enable-gtk-doc-html=no
--enable-gtk-doc=no
--enable-pyvips8=no
--without-orc
--without-python
--prefix=$HOME/libvips
$1
- make
- make install
- cd .. - cd ..
- export PATH=$PATH:$HOME/libvips/bin - export PATH=$PATH:$HOME/libvips/bin
- export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$HOME/libvips/lib/pkgconfig - export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$HOME/libvips/lib/pkgconfig
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/libvips/lib - export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/libvips/lib
- vips --vips-version - vips --vips-version
# - >
# test "$LIBVIPS" != "master" -a "$LIBVIPS" \< "8.4" \
# && wget http://www.vips.ecs.soton.ac.uk/supported/${LIBVIPS%.*}/vips-${LIBVIPS}.tar.gz -O vips.tgz \
# || echo ":-)"
# - >
# test "$LIBVIPS" != "master" -a "$LIBVIPS" \> "8.4" \
# && wget https://github.com/libvips/libvips/archive/v${LIBVIPS}.tar.gz -O vips.tgz \
# || echo ":-)"
# - >
# test $LIBVIPS == "master" \
# && wget https://github.com/libvips/libvips/archive/${LIBVIPS}.tar.gz -O vips.tgz \
# || echo ":-)"
# - mkdir libvips
# - tar xf vips.tgz -C libvips --strip-components 1
# - cd libvips
# - test -f autogen.sh && ./autogen.sh || ./bootstrap.sh
# - >
# CXXFLAGS=-D_GLIBCXX_USE_CXX11_ABI=0
# ./configure
# --disable-debug
# --disable-dependency-tracking
# --disable-introspection
# --disable-static
# --enable-gtk-doc-html=no
# --enable-gtk-doc=no
# --enable-pyvips8=no
# --without-orc
# --without-python
# --prefix=$HOME/libvips
# $1
# - make
# - make install
# - cd ..
# - export PATH=$PATH:$HOME/libvips/bin
# - export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$HOME/libvips/lib/pkgconfig
# - export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/libvips/lib
# - vips --vips-version
install: install:
- go get -u golang.org/x/lint/golint - go get -u golang.org/x/lint/golint

Loading…
Cancel
Save