-
Notifications
You must be signed in to change notification settings - Fork 24
/
.travis.yml
37 lines (32 loc) · 1.52 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
language: php
php:
- 5.4
before_install:
- sudo apt-get update > /dev/null
before_script:
- wget https://files-cdn.liferay.com/mirrors/geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.xz -O geodata/GeoLiteCity.dat.xz
- unxz geodata/GeoLiteCity.dat.xz
- printf "\n" | pecl install imagick
- echo '' > ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini
- echo "memory_limit=4096M" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- export ADDITIONAL_PATH=`php -i | grep -F --color=never 'Scan this dir for additional .ini files'`
- export MINK_EXTENSION_PARAMS='base_url=http://localhost:8000/app_test.php'
- ls -l ~/.phpenv/bin
- php -i
- composer self-update
- mysql -u root -e "CREATE DATABASE IF NOT EXISTS fwdays_com_development CHARACTER SET utf8 COLLATE utf8_general_ci;"
- mysql -u root -e "CREATE DATABASE IF NOT EXISTS fwdays_com_testing CHARACTER SET utf8 COLLATE utf8_general_ci;"
- composer install --prefer-source --no-interaction
- bin/console doctrine:mi:mi --no-interaction --env=test
- bin/console doctrine:fixtures:load --no-interaction --env=test
- bin/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/phpunit -c app/
notifications:
email: