mirror of https://mirror.trustie.net/root/bimg.git
82 lines
1.7 KiB
YAML
82 lines
1.7 KiB
YAML
language: go
|
|
|
|
sudo: required
|
|
dist: trusty
|
|
|
|
go:
|
|
- 1.6
|
|
- 1.7
|
|
- tip
|
|
|
|
env:
|
|
- LIBVIPS=7.42.3
|
|
- LIBVIPS=8.2.3
|
|
- LIBVIPS=8.3.3
|
|
- LIBVIPS=8.4.5
|
|
- LIBVIPS=master
|
|
|
|
matrix:
|
|
allow_failures:
|
|
- env: LIBVIPS=7.42.3
|
|
- env: LIBVIPS=8.2.3
|
|
- env: LIBVIPS=8.3.3
|
|
|
|
cache: apt
|
|
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- gobject-introspection
|
|
- gtk-doc-tools
|
|
- libcfitsio3-dev
|
|
- libfftw3-dev
|
|
- libgif-dev
|
|
- libgs-dev
|
|
- libgsf-1-dev
|
|
- libmatio-dev
|
|
- libopenslide-dev
|
|
- liborc-0.4-dev
|
|
- libpango1.0-dev
|
|
- libpoppler-glib-dev
|
|
- libwebp-dev
|
|
|
|
# VIPS 8.3.3 requires Poppler 0.30 which is not released on Trusty.
|
|
before_install:
|
|
- >
|
|
test $LIBVIPS != "master" \
|
|
&& wget http://www.vips.ecs.soton.ac.uk/supported/${LIBVIPS%.*}/vips-${LIBVIPS}.tar.gz -O vips.tgz \
|
|
|| wget https://github.com/jcupitt/libvips/archive/${LIBVIPS}.tar.gz -O vips.tgz
|
|
- 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
|
|
$1
|
|
- make
|
|
- sudo make install
|
|
- sudo ldconfig
|
|
- cd ..
|
|
|
|
before_script:
|
|
- go get -u github.com/golang/lint/golint
|
|
|
|
script:
|
|
- diff -u <(echo -n) <(gofmt -s -d ./)
|
|
- diff -u <(echo -n) <(go vet ./)
|
|
- diff -u <(echo -n) <(golint ./)
|
|
- go test -v -race -covermode=atomic -coverprofile=coverage.out
|
|
|
|
after_success:
|
|
- goveralls -coverprofile=coverage.out -service=travis-ci
|