mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
51 lines
2.8 KiB
YAML
51 lines
2.8 KiB
YAML
language: php
|
|
|
|
services:
|
|
- mysql
|
|
|
|
before_script:
|
|
- rm -f config/services.yml config/connexions.yml config/config.yml config/config.inc config/connexion.inc config/_GV.php config/_GV.php.old
|
|
- cp -f hudson/connexion.inc config/
|
|
- cp -f hudson/_GV.php config/
|
|
- curl -s http://getcomposer.org/installer | php
|
|
- php composer.phar install --dev
|
|
- sudo apt-get install -y xpdf ffmpeg libavcodec-extra-53 openoffice.org-writer unoconv ghostscript gsfonts dcraw ufraw graphicsmagick libgraphicsmagick1-dev libfreetype6-dev libjpeg-dev libgif-dev libtiff-dev libdjvulibre-dev libwmf-dev libmagickcore-dev libmagickwand-dev libpng-dev gettext zlib1g-dev build-essential libfaac-dev libmp3lame0 libx264-dev libvpx-dev libtheora-dev libvorbis-dev gpac
|
|
- sudo apt-get autoremove
|
|
- sudo apt-get clean
|
|
|
|
- wget http://sphinxsearch.com/files/sphinx-2.0.5-release.tar.gz
|
|
- tar xzvf sphinx-2.0.5-release.tar.gz
|
|
- sh -c "cd sphinx-2.0.5-release && wget http://snowball.tartarus.org/dist/libstemmer_c.tgz && tar xzvf libstemmer_c.tgz && ./configure --with-libstemmer --with-iconv --with-mysql --enable-id64 && make && sudo make install"
|
|
- mysql -e 'create database ab_test;create database db_test; create database ab_unitTests; create database db_unitTests;'
|
|
- sudo mysql -e "GRANT ALL PRIVILEGES ON ab_unitTests.* TO 'phraseaUnitTests'@'localhost' IDENTIFIED BY 'iWvGxPE8' WITH GRANT OPTION"
|
|
- sudo mysql -e "GRANT ALL PRIVILEGES ON db_unitTests.* TO 'phraseaUnitTests'@'localhost' IDENTIFIED BY 'iWvGxPE8' WITH GRANT OPTION"
|
|
- mysql -e "source `pwd`/hudson/fixtures.sql"
|
|
- mysql -e 'SET @@global.sql_mode= "";'
|
|
- mysql -e 'SET @@global.wait_timeout= 999999;'
|
|
- git clone git://github.com/alchemy-fr/Phraseanet-Extension.git
|
|
- sh -c "cd Phraseanet-Extension && phpize && ./configure && make && sudo make install"
|
|
- echo "extension=phrasea2.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`
|
|
- 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*||"`
|
|
- bin/setup system:upgrade -y -v -f
|
|
# - wget http://pecl.php.net/get/gmagick-1.1.0RC2.tgz
|
|
# - tar -xzf gmagick-1.1.0RC2.tgz
|
|
# - sh -c "cd gmagick-1.1.0RC2 && phpize && ./configure --with-gmagick=/usr/local && make && sudo make install"
|
|
# - echo "extension=gmagick.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`
|
|
|
|
notifications:
|
|
irc:
|
|
channels:
|
|
- "irc.freenode.org#phrasea"
|
|
template:
|
|
- "%{repository_url} %{branch} by %{author} (%{commit}) : %{message}"
|
|
- "Build details: %{build_url}"
|
|
use_notice: true
|
|
|
|
php:
|
|
- 5.3
|
|
- 5.4
|
|
- 5.5
|