Sylius/.travis.yml

76 lines
4.5 KiB
YAML

language: php
php:
- 5.3
- 5.4
- 5.5
env: MONGO_VERSION=1.3.4
services: mongodb
install:
- sudo rm -rf /dev/shm && sudo ln -s /run/shm /dev/shm
before_script:
- wget http://pecl.php.net/get/mongo-1.4.3.tgz
- tar -xzf mongo-1.4.3.tgz
- sh -c "cd mongo-1.4.3 && phpize && ./configure && sudo make install"
- echo "extension=mongo.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`
- echo '' > ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini
- ulimit -n 10000
- sudo apt-get update
- sudo apt-get install -y --force-yes apache2 libapache2-mod-php5 php5-mysql php5-curl wkhtmltopdf
- sudo sed -i -e "s,/var/www,$(pwd)/web,g" /etc/apache2/sites-available/default
- export MINK_EXTENSION_PARAMS='base_url=http://localhost:8000/app_test.php'
- sudo /etc/init.d/apache2 restart
- composer self-update
- composer require doctrine/mongodb-odm="1.0.*@dev"
- composer install --prefer-source --no-interaction
- app/console doctrine:database:create --env=test > /dev/null
- app/console doctrine:schema:create --env=test > /dev/null
- app/console cache:warmup --env=test > /dev/null
- sh -e /etc/init.d/xvfb start
- export DISPLAY=:99
- wget http://selenium.googlecode.com/files/selenium-server-standalone-2.35.0.jar
- java -jar selenium-server-standalone-2.35.0.jar > /dev/null &
- sleep 5
script:
- php -d memory_limit=2048M bin/behat --no-snippets --no-paths --verbose --tags '@cart && ~@javascript'
- php -d memory_limit=2048M bin/behat --no-snippets --no-paths --verbose --tags '@taxation && ~@javascript'
- php -d memory_limit=2048M bin/behat --no-snippets --no-paths --verbose --tags '@shipping && ~@javascript'
- php -d memory_limit=2048M bin/behat --no-snippets --no-paths --verbose --tags '@addressing && ~@javascript'
- php -d memory_limit=2048M bin/behat --no-snippets --no-paths --verbose --tags '@promotions && ~@javascript'
- php -d memory_limit=2048M bin/behat --no-snippets --no-paths --verbose --tags '@inventory && ~@javascript'
- php -d memory_limit=2048M bin/behat --no-snippets --no-paths --verbose --tags '@taxonomies && ~@javascript'
- php -d memory_limit=2048M bin/behat --no-snippets --no-paths --verbose --tags '@settings && ~@javascript'
- php -d memory_limit=2048M bin/behat --no-snippets --no-paths --verbose --tags '@payments && ~@javascript'
- php -d memory_limit=2048M bin/behat --no-snippets --no-paths --verbose --tags '@currencies && ~@javascript'
- php -d memory_limit=2048M bin/behat --no-snippets --no-paths --verbose --tags '@account && ~@javascript'
- php -d memory_limit=2048M bin/behat --no-snippets --no-paths --verbose --tags '@checkout && ~@javascript'
- php -d memory_limit=2048M bin/behat --no-snippets --no-paths --verbose --tags '@homepage && ~@javascript'
- php -d memory_limit=4096M bin/behat --no-snippets --no-paths --verbose --tags '@products && ~@javascript'
- php -d memory_limit=2048M bin/behat --no-snippets --no-paths --verbose --tags '@users && ~@javascript'
- php -d memory_limit=2048M bin/behat --no-snippets --no-paths --verbose --tags '@dashboard && ~@javascript'
- php -d memory_limit=2048M bin/behat --no-snippets --no-paths --verbose --tags '@orders && ~@javascript'
- cd src/Sylius/Bundle/AddressingBundle; ../../../../bin/phpspec run -fpretty --verbose
- cd ../CartBundle; ../../../../bin/phpspec run -fpretty --verbose
- cd ../InventoryBundle; ../../../../bin/phpspec run -fpretty --verbose
- cd ../OmnipayBundle; ../../../../bin/phpspec run -fpretty --verbose
- cd ../CoreBundle; ../../../../bin/phpspec run -fpretty --verbose
- cd ../SalesBundle; ../../../../bin/phpspec run -fpretty --verbose
- cd ../ProductBundle; ../../../../bin/phpspec run -fpretty --verbose
- cd ../VariableProductBundle; ../../../../bin/phpspec run -fpretty --verbose
- cd ../TaxationBundle; ../../../../bin/phpspec run -fpretty --verbose
- cd ../ShippingBundle; ../../../../bin/phpspec run -fpretty --verbose
- cd ../TaxonomiesBundle; ../../../../bin/phpspec run -fpretty --verbose
- cd ../ResourceBundle; ../../../../bin/phpspec run -fpretty --verbose
- cd ../MoneyBundle; ../../../../bin/phpspec run -fpretty --verbose
- cd ../SettingsBundle; ../../../../bin/phpspec run -fpretty --verbose
- cd ../PromotionsBundle; ../../../../bin/phpspec run -fpretty --verbose
- cd ../PaymentsBundle; ../../../../bin/phpspec run -fpretty --verbose
notifications:
email: "travis-ci@sylius.org"
irc: "irc.freenode.org#sylius-dev"