forked from Sylius/Sylius
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
74 lines (61 loc) · 3.23 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
language: php
php:
- 5.3
- 5.4
- 5.5
branches:
only:
- master
services: mongodb
before_install:
- sudo apt-get update > /dev/null
- sudo rm -rf /dev/shm && sudo ln -s /run/shm /dev/shm
install:
- sudo apt-get install -y --force-yes apache2 libapache2-mod-php5 php5-curl php5-intl wkhtmltopdf > /dev/null
- sudo sed -i -e "s,/var/www,$(pwd)/web,g" /etc/apache2/sites-available/default
- sudo /etc/init.d/apache2 restart
before_script:
- echo '' > ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini
- echo "extension = mongo.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- export MINK_EXTENSION_PARAMS='base_url=http://localhost:8000/app_test.php'
- composer self-update
- composer require doctrine/mongodb-odm="1.0.*@dev" --no-update
- composer require jmikola/geojson="~1.0" --no-update
- composer install --prefer-source --no-interaction
- wget http://getcomposer.org/composer.phar
- php -d memory_limit=2048M composer.phar update doctrine/mongodb-odm
- app/console doctrine:database:create --env=test > /dev/null
- app/console doctrine:schema:create --env=test > /dev/null
- app/console doctrine:phpcr:repository:init --env=test > /dev/null
- app/console cache:warmup --env=test > /dev/null
- sh -e /etc/init.d/xvfb start
- export DISPLAY=:99
# - curl http://selenium-release.storage.googleapis.com/2.41/selenium-server-standalone-2.41.0.jar > selenium.jar
# - java -jar selenium.jar > /dev/null &
- sleep 5
script:
- bin/phpspec run -f dot
- php -d memory_limit=4096M bin/behat --stop-on-failure --suite=account
- php -d memory_limit=4096M bin/behat --stop-on-failure --suite=addressing
- php -d memory_limit=4096M bin/behat --stop-on-failure --suite=cart
- php -d memory_limit=4096M bin/behat --stop-on-failure --suite=checkout
- php -d memory_limit=4096M bin/behat --stop-on-failure --suite=currencies
- php -d memory_limit=4096M bin/behat --stop-on-failure --suite=dashboard
- php -d memory_limit=4096M bin/behat --stop-on-failure --suite=homepage
- php -d memory_limit=4096M bin/behat --stop-on-failure --suite=inventory
- php -d memory_limit=4096M bin/behat --stop-on-failure --suite=localization
- php -d memory_limit=4096M bin/behat --stop-on-failure --suite=oauth
- php -d memory_limit=4096M bin/behat --stop-on-failure --suite=orders
- php -d memory_limit=4096M bin/behat --stop-on-failure --suite=payments
- php -d memory_limit=4096M bin/behat --stop-on-failure --suite=pricing
- php -d memory_limit=4096M bin/behat --stop-on-failure --suite=products
- php -d memory_limit=4096M bin/behat --stop-on-failure --suite=promotions
- php -d memory_limit=4096M bin/behat --stop-on-failure --suite=settings
- php -d memory_limit=4096M bin/behat --stop-on-failure --suite=shipping
- php -d memory_limit=4096M bin/behat --stop-on-failure --suite=taxation
- php -d memory_limit=4096M bin/behat --stop-on-failure --suite=taxonomies
- php -d memory_limit=4096M bin/behat --stop-on-failure --suite=users
# - php -d memory_limit=4096M bin/behat --stop-on-failure --suite=javascript
notifications:
email: "[email protected]"
irc: "irc.freenode.org#sylius-dev"