forked from xi-project/xi-filelib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
37 lines (31 loc) · 1.55 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
language: php
php:
- 5.3
- 5.4
env:
- DB=mysql
- DB=sqlite
- DB=pgsql
services:
- mongodb
before_script:
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'CREATE DATABASE IF NOT EXISTS xi_filelib_test;' -uroot; mysql -uroot xi_filelib_test < docs/schema-mysql.sql; fi"
- sh -c "if [ '$DB' = 'sqlite' ]; then sqlite3 xi_filelib_test < docs/schema-sqlite.sql; fi"
- sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'CREATE DATABASE xi_filelib_test;' -U postgres; psql xi_filelib_test -f docs/schema-postgresql.sql; fi"
- curl -s http://getcomposer.org/installer | php && php composer.phar install --dev
- pyrus channel-discover pear.symfony.com
- pyrus install -o pear.phpunit.de/PHPUnit
- pyrus install -o pear.phpunit.de/DbUnit
- phpenv rehash
- wget http://pecl.php.net/get/mongo-1.2.7.tgz
- tar -xzf mongo-1.2.7.tgz
- sh -c "cd mongo-1.2.7 && phpize && ./configure --enable-mongo && make && sudo make install"
- echo "extension=mongo.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`
- sudo apt-get install -y imagemagick libtiff-dev libjpeg-dev libdjvulibre-dev libwmf-dev libmagickcore-dev libmagickwand-dev
- wget http://pecl.php.net/get/imagick-3.1.0RC2.tgz
- tar -xzf imagick-3.1.0RC2.tgz
- sh -c "cd imagick-3.1.0RC2 && phpize && ./configure --with-imagick=/usr/local && make && sudo make install"
- echo "extension=imagick.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`
script: cd tests && phpunit --configuration travis/$DB.travis.xml
notifications:
irc: "irc.freenode.net#xi-project"