forked from codeconsortium/CCDNForumForumBundle
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
41 lines (33 loc) · 1.05 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
language: php
php:
# - hhvm
- 5.3
- 5.4
- 5.5
matrix:
allow_failures:
- php: 5.3
before_script:
- echo 'date.timezone = "Europe/London"' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- mysql -e 'CREATE DATABASE ccdn_test'
- >
echo 'parameters:
database_driver: pdo_mysql
database_host: 127.0.0.1
database_port: null
database_name: ccdn_test
database_user: root
database_password: ~
locale: en
' > ./Tests/Functional/app/config/parameters.yml
- curl -s http://getcomposer.org/installer | php
- php composer.phar install --dev --prefer-dist
- php ./Tests/Functional/app/console doctrine:schema:create
- php ./Tests/Functional/app/console doctrine:schema:update --force
script:
- 'php ./vendor/bin/phpunit -c ./ --testdox'
- 'php ./vendor/bin/behat'
after_script:
- mysql -e 'DROP DATABASE ccdn_test;'
notifications:
email: [email protected]