forked from jmontoyaa/APYDataGridBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (37 loc) · 1.16 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
language: php
php:
- 7.2
- 7.3
matrix:
include:
- php: 7.2
env: |
SYMFONY_VERSION=^3.0
- php: 7.2
env: |
SYMFONY_VERSION=^4.0
before_install:
- echo "extension = mongodb.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- |
if [ "${SYMFONY_VERSION}" != "" ]; then
packages="form dependency-injection config http-foundation http-kernel options-resolver security-guard serializer"
devpackages="framework-bundle browser-kit templating expression-language"
for package in $packages
do
composer require --no-update symfony/"$package"=${SYMFONY_VERSION};
done
for package in $devpackages
do
composer require --dev --no-update symfony/"$package"=${SYMFONY_VERSION};
done
fi;
install:
- travis_retry composer self-update
- COMPOSER_MEMORY_LIMIT=-1 travis_retry composer update ${COMPOSER_FLAGS} --no-interaction
- curl -s http://getcomposer.org/installer | php
- php composer.phar install --dev --no-interaction
script:
- mkdir -p build/logs
- php vendor/bin/phpunit -c phpunit.xml.dist
after_success:
- php vendor/bin/php-coveralls