forked from Sylius/Sylius
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
42 lines (37 loc) · 1.63 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
language: php
php:
- 5.3
- 5.4
- 5.5
matrix:
allow_failures:
- php: 5.5
before_script:
# - 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
- composer self-update
- composer install --dev --prefer-source --no-interaction > /dev/null
- app/console doctrine:database:create --env=test > /dev/null
- app/console doctrine:schema:create --env=test > /dev/null
- 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
script:
- bin/behat --no-snippets --no-paths --verbose -p frontend
- php -d memory_limit=1024M bin/behat --no-snippets --no-paths --verbose -p backend
# - bin/behat --no-snippets --no-paths --verbose -p api
- bin/phpspec run src/Sylius/Bundle/CoreBundle/spec -fpretty --verbose
- bin/phpspec run src/Sylius/Bundle/WebBundle/spec -fpretty --verbose
notifications:
email: "[email protected]"
irc: "irc.freenode.org#sylius-dev"