mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-01-08 10:45:04 +02:00
Optimize travis build
This commit is contained in:
parent
8a533d83b7
commit
0ae30d0a43
24
.travis.yml
24
.travis.yml
@ -1,18 +1,40 @@
|
|||||||
language: go
|
language: go
|
||||||
|
|
||||||
go:
|
go:
|
||||||
- '1.8'
|
- '1.8'
|
||||||
- '1.9'
|
- '1.9'
|
||||||
- '1.10'
|
- '1.10'
|
||||||
- '1.11'
|
- '1.11'
|
||||||
- tip
|
- tip
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- VIPS_VERSION=8.4.6
|
- VIPS_VERSION=8.4.6
|
||||||
- VIPS_VERSION=8.5.8
|
- VIPS_VERSION=8.5.8
|
||||||
|
|
||||||
|
cache: apt
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- sudo apt-get -qq update
|
- sudo apt-get -qq update
|
||||||
- sudo apt-get install -y build-essential libxml2-dev libfftw3-dev gobject-introspection libglib2.0-dev libwebp-dev libgif-dev
|
- sudo apt-get install -y build-essential libxml2-dev libfftw3-dev gobject-introspection libglib2.0-dev libwebp-dev libgif-dev
|
||||||
- wget https://github.com/jcupitt/libvips/releases/download/v$VIPS_VERSION/vips-$VIPS_VERSION.tar.gz
|
- wget https://github.com/jcupitt/libvips/releases/download/v$VIPS_VERSION/vips-$VIPS_VERSION.tar.gz
|
||||||
- tar -xzvf vips-$VIPS_VERSION.tar.gz
|
- tar -xzvf vips-$VIPS_VERSION.tar.gz
|
||||||
- pushd vips-$VIPS_VERSION && ./configure --prefix=/usr && make && sudo make install && popd
|
- pushd vips-$VIPS_VERSION
|
||||||
|
- >
|
||||||
|
./configure
|
||||||
|
--prefix=/usr
|
||||||
|
--without-python
|
||||||
|
--without-gsf
|
||||||
|
--without-orc
|
||||||
|
--disable-debug
|
||||||
|
--disable-dependency-tracking
|
||||||
|
--disable-static
|
||||||
|
--enable-silent-rules
|
||||||
|
--enable-gtk-doc-html=no
|
||||||
|
--enable-gtk-doc=no
|
||||||
|
--enable-pyvips8=no
|
||||||
|
- make
|
||||||
|
- sudo make install
|
||||||
|
- popd
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- CGO_LDFLAGS_ALLOW="-s|-w" go build
|
- CGO_LDFLAGS_ALLOW="-s|-w" go build
|
||||||
|
Loading…
Reference in New Issue
Block a user