-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.install.sh
43 lines (39 loc) · 1.39 KB
/
.travis.install.sh
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
composer self-update
composer -vvv install --prefer-source --no-interaction --dev
sudo apt-get remove -y imagemagick libmagickcore-dev libmagickwand-dev;
sudo apt-get autoremove;
sudo apt-get install -y libtiff-dev libjpeg-dev libpng-dev libdjvulibre-dev libwmf-dev pkg-config;
if [ "$IMAGE_DRIVER" = "imagick" ] ; then
curl -O http://www.imagemagick.org/download/releases/ImageMagick-6.9.0-4.tar.gz;
tar xzf ImageMagick-6.9.0-4.tar.gz;
cd ImageMagick-6.9.0-4;
./configure --prefix=/usr/local/imagemagick;
make -j;
sudo make install;
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/imagemagick/lib/pkgconfig;
sudo ln -s /usr/local/imagemagick/include/ImageMagick-6 /usr/local/imagemagick/include/ImageMagick;
cd ..;
curl -O 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=/usr/local/imagemagick;
make -j;
sudo make install;
echo "extension = imagick.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
php --ri imagick;
cd ..;
fi
if [ "$IMAGE_DRIVER" = "gmagick" ] ; then
curl -O 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 = imagick.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
php --ri gmagick;
cd ..;
fi
export TEST_RUNNING_IN_CI=true;