mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 09:02:12 +00:00
Tweak travis config
This commit is contained in:
parent
709f4c0e3a
commit
ad85e4c4f3
2 changed files with 30 additions and 47 deletions
62
.travis.yml
62
.travis.yml
|
|
@ -11,16 +11,14 @@ matrix:
|
|||
|
||||
before_script:
|
||||
- "ulimit -n 10000"
|
||||
- "sudo apt-get install -y wkhtmltopdf"
|
||||
- "export DISPLAY=:99.0"
|
||||
- "sh -e /etc/init.d/xvfb start"
|
||||
# - echo '' > ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini
|
||||
# - sudo apt-get update > /dev/null
|
||||
# - sudo apt-get install -y --force-yes apache2 libapache2-mod-php5 php5-curl php5-mysql php5-intl
|
||||
# - sudo sed -i -e "s,/var/www,$(pwd)/web,g" /etc/apache2/sites-available/default
|
||||
# - sudo sed -i -e "/DocumentRoot/i\ServerName sylius.local" /etc/apache2/sites-available/default
|
||||
# - echo "127.0.0.1 sylius.local" | sudo tee -a /etc/hosts
|
||||
# - sudo /etc/init.d/apache2 restart
|
||||
- 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 HOSTNAME=sylius.local
|
||||
- export MINK_EXTENSION_PARAMS='base_url=http://$HOSTNAME/app_test.php'
|
||||
- sudo sed -i -e "/DocumentRoot/i\ServerName $HOSTNAME" /etc/apache2/sites-available/default
|
||||
- echo "127.0.0.1 $HOSTNAME" | sudo tee -a /etc/hosts
|
||||
- sudo /etc/init.d/apache2 restart
|
||||
- composer self-update
|
||||
- composer install --dev --prefer-source --no-interaction > /dev/null
|
||||
- app/console doctrine:database:create --env=test > /dev/null
|
||||
|
|
@ -28,30 +26,30 @@ before_script:
|
|||
- chmod -R 777 app/cache app/logs
|
||||
- app/console cache:warmup --env=test > /dev/null
|
||||
- chmod -R 777 app/cache app/logs
|
||||
# - "sh -e /etc/init.d/xvfb start"
|
||||
# - "export DISPLAY=:99.0"
|
||||
# - "wget http://selenium.googlecode.com/files/selenium-server-standalone-2.31.0.jar"
|
||||
# - "java -jar selenium-server-standalone-2.31.0.jar > /dev/null &"
|
||||
# - sleep 5
|
||||
- export DISPLAY=:99
|
||||
- wget http://selenium.googlecode.com/files/selenium-server-standalone-2.28.0.jar
|
||||
- java -jar selenium-server-standalone-2.28.0.jar > /dev/null &
|
||||
- sh -e /etc/init.d/xvfb start
|
||||
- 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'
|
||||
- php -d memory_limit=2048M bin/behat --no-snippets --no-paths --verbose --tags '@cart'
|
||||
- php -d memory_limit=2048M bin/behat --no-snippets --no-paths --verbose --tags '@taxation'
|
||||
- php -d memory_limit=2048M bin/behat --no-snippets --no-paths --verbose --tags '@shipping'
|
||||
- php -d memory_limit=2048M bin/behat --no-snippets --no-paths --verbose --tags '@addressing'
|
||||
- php -d memory_limit=2048M bin/behat --no-snippets --no-paths --verbose --tags '@promotions'
|
||||
- php -d memory_limit=2048M bin/behat --no-snippets --no-paths --verbose --tags '@inventory'
|
||||
- php -d memory_limit=2048M bin/behat --no-snippets --no-paths --verbose --tags '@taxonomies'
|
||||
- php -d memory_limit=2048M bin/behat --no-snippets --no-paths --verbose --tags '@settings'
|
||||
- php -d memory_limit=2048M bin/behat --no-snippets --no-paths --verbose --tags '@payments'
|
||||
- php -d memory_limit=2048M bin/behat --no-snippets --no-paths --verbose --tags '@currencies'
|
||||
- php -d memory_limit=2048M bin/behat --no-snippets --no-paths --verbose --tags '@account'
|
||||
- php -d memory_limit=2048M bin/behat --no-snippets --no-paths --verbose --tags '@checkout'
|
||||
- php -d memory_limit=2048M bin/behat --no-snippets --no-paths --verbose --tags '@homepage'
|
||||
- php -d memory_limit=4096M bin/behat --no-snippets --no-paths --verbose --tags '@products'
|
||||
- php -d memory_limit=2048M bin/behat --no-snippets --no-paths --verbose --tags '@users'
|
||||
- php -d memory_limit=2048M bin/behat --no-snippets --no-paths --verbose --tags '@dashboard'
|
||||
- php -d memory_limit=2048M bin/behat --no-snippets --no-paths --verbose --tags '@orders'
|
||||
- cd src/Sylius/Bundle/AddressingBundle; ../../../../bin/phpspec run -fpretty --verbose
|
||||
- cd src/Sylius/Bundle/CartBundle; ../../../../bin/phpspec run -fpretty --verbose
|
||||
- cd src/Sylius/Bundle/InventoryBundle; ../../../../bin/phpspec run -fpretty --verbose
|
||||
|
|
|
|||
|
|
@ -2,13 +2,10 @@
|
|||
# (c) Paweł Jędrzejewski
|
||||
|
||||
default:
|
||||
filters:
|
||||
tags: "~@javascript"
|
||||
context:
|
||||
class: Sylius\Bundle\WebBundle\Behat\FeatureContext
|
||||
extensions:
|
||||
Behat\MinkExtension\Extension:
|
||||
base_url: "http://sylius.local/app_test.php"
|
||||
default_session: symfony2
|
||||
selenium2: ~
|
||||
Behat\Symfony2Extension\Extension:
|
||||
|
|
@ -21,15 +18,3 @@ saucelabs:
|
|||
browser: firefox
|
||||
wd_host: your_saucelabs_username:your_saucelabs_apikey@ondemand.saucelabs.com/wd/hub
|
||||
capabilities: { "platform": "Windows 8", "browser": "firefox", "version": "21"}
|
||||
|
||||
frontend:
|
||||
paths:
|
||||
features: features/frontend
|
||||
|
||||
backend:
|
||||
paths:
|
||||
features: features/backend
|
||||
|
||||
api:
|
||||
paths:
|
||||
features: features/api
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue