forked from weserv/images
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
91 lines (84 loc) · 2.52 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
language: cpp
dist: xenial
env:
global:
- VIPS_VERSION=8.8.3
- VIPS_WARNING=0
- JOBS=`nproc`
- LD_LIBRARY_PATH=$HOME/vips/lib:$LD_LIBRARY_PATH
- PKG_CONFIG_PATH=$HOME/vips/lib/pkgconfig:$PKG_CONFIG_PATH
- PATH=$HOME/vips/bin:$HOME/nginx/sbin:$PATH
- CTEST_OUTPUT_ON_FAILURE=1
- CTEST_PARALLEL_LEVEL=$JOBS
- CODECOV_TOKEN=a795bded-831b-4799-a7c4-f86096834d1b
cache:
directories:
- $HOME/vips
addons:
apt:
update: true
sources:
# for Test::Nginx
- sourceline: 'deb http://openresty.org/package/ubuntu $(lsb_release -cs) main'
key_url: 'https://openresty.org/package/pubkey.gpg'
# use a more recent imagemagick instead of 6.8.9-9
- sourceline: 'ppa:cran/imagemagick'
# add support for HEIF files
- sourceline: 'ppa:strukturag/libheif'
- sourceline: 'ppa:strukturag/libde265'
packages:
- lcov
- clang-tidy
- libtest-nginx-perl
- libexpat1-dev
- gettext
- liblcms2-dev
- libmagickwand-dev
- libopenexr-dev
- 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
- librsvg2-dev
- libwebp-dev
- libtiff5-dev
- libheif-dev
# missing on xenial, unfortunately
# - libwebpmux2
- libglib2.0-dev
# needed for building libvips from source
- gtk-doc-tools
- gobject-introspection
before_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
install:
- |
bash .ci/install-vips.sh \
--disable-dependency-tracking
script:
- mkdir -p build && cd build
- |
cmake .. \
-DCMAKE_BUILD_TYPE=Debug \
-DCUSTOM_NGX_FLAGS="--prefix=$HOME/nginx" \
-DENABLE_COVERAGE=ON \
-DBUILD_TESTS=ON
- make -j$JOBS
- make test
- TEST_NGINX_SERVROOT=$PWD/servroot prove -r ../test/nginx
after_success:
# collect coverage information
- make coverage
# upload coverage report to Codecov
- bash <(curl -s https://codecov.io/bash) -f coverage.info || echo "Codecov did not collect coverage reports"