forked from php-imagine/Imagine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (47 loc) · 1.95 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
language: php
env:
- IMAGINE_DRIVER=imagick
- IMAGINE_DRIVER=gmagick
before_script:
- composer self-update
- composer install --prefer-source
- sudo apt-get remove -y imagemagick libmagickcore-dev libmagickwand-dev
- sudo apt-get install -y libtiff-dev libjpeg-dev libdjvulibre-dev libwmf-dev pkg-config
- echo '' > ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini
- sh -c " if [ '$IMAGINE_DRIVER' = 'imagick' ]; then
wget http://www.imagemagick.org/download/ImageMagick-6.8.9-7.tar.gz;
tar xzf ImageMagick-6.8.9-7.tar.gz;
cd ImageMagick-6.8.9-7;
./configure --prefix=/opt/imagemagick;
make -j;
sudo make install;
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/imagemagick/lib/pkgconfig;
sudo ln -s /opt/imagemagick/include/ImageMagick-6 /opt/imagemagick/include/ImageMagick;
cd ..;
wget http://pecl.php.net/get/imagick-3.2.0RC1.tgz;
tar -xzf imagick-3.2.0RC1.tgz;
cd imagick-3.2.0RC1;
phpize;
./configure --with-imagick=/opt/imagemagick;
make -j;
sudo make install;
echo \"extension=imagick.so\" >> `php --ini | grep \"Loaded Configuration\" | sed -e \"s|.*:\s*||\"`;
php --ri imagick;
fi"
- sh -c " if [ '$IMAGINE_DRIVER' = 'gmagick' ]; then
sudo apt-get install -y graphicsmagick libgraphicsmagick1-dev;
wget http://pecl.php.net/get/gmagick-1.1.7RC2.tgz;
tar -xzf gmagick-1.1.7RC2.tgz;
cd gmagick-1.1.7RC2;
phpize;
./configure --with-gmagick=/usr/local;
make -j;
sudo make install;
echo \"extension=gmagick.so\" >> `php --ini | grep \"Loaded Configuration\" | sed -e \"s|.*:\s*||\"`;
php --ri gmagick;
fi"
php:
- 5.3.3
- 5.3
- 5.4
- 5.5