forked from davidbyttow/govips
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
77 lines (68 loc) · 1.66 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
language: go
go_import_path: github.com/davidbyttow/govips
sudo: required
dist: trusty
go:
- 1.9
env:
- VIPS_VERSION=8.6.2
matrix:
allow_failures:
- env: VIPS_VERSION=8.2
- env: VIPS_VERSION=8.3
cache:
apt: true
directories:
- libvips
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:
- |
cd libvips
test -d libvips-${VIPS_VERSION} && {
cd libvips-${VIPS_VERSION}
} || {
wget https://github.com/jcupitt/libvips/archive/v${VIPS_VERSION}.zip
unzip v${VIPS_VERSION}
cd libvips-${VIPS_VERSION}
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:
- |
set -e
diff -u <(echo -n) <(gofmt -s -d ./)
- |
set -e
diff -u <(echo -n) <(go vet ./pkg/vips)
- |
set -e
diff -u <(echo -n) <(golint ./)
- |
set -e
for test in ./pkg/vips/*_test.go
do
echo $test
go test $test -short -v -race -covermode=atomic -coverprofile=coverage.out
done