Skip to content
This repository was archived by the owner on Dec 14, 2024. It is now read-only.

Commit 481d884

Browse files
Travis CI: Fix configuration for Symfony 5
1 parent d3e4908 commit 481d884

2 files changed

Lines changed: 20 additions & 14 deletions

File tree

.travis.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ jobs:
5353

5454
script:
5555
- make tests
56+
5657
- name: "PHP 7.3 / Symfony 4.4 / Code coverage"
5758
php: 7.3
5859
env:
@@ -68,9 +69,9 @@ jobs:
6869
- make composer-install
6970

7071
script:
71-
- php ./vendor/bin/phpspec run --format=pretty
72+
- make phpspec
7273
- php ./vendor/bin/phpunit --coverage-clover ./build/logs/clover.xml
73-
- php ./vendor/bin/behat --colors --strict --format=progress -vv
74+
- make behat
7475

7576
after_success:
7677
- php ./vendor/bin/test-reporter
@@ -81,13 +82,18 @@ jobs:
8182
env:
8283
- SYMFONY_VERSION="^5.1"
8384
before_install:
85+
- phpenv config-rm xdebug.ini
8486
- echo "memory_limit = -1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
8587

8688
install:
87-
- composer require symfony/config:${SYMFONY_VERSION} symfony/form:${SYMFONY_VERSION} symfony/framework-bundle:${SYMFONY_VERSION} symfony/templating:${SYMFONY_VERSION} symfony/security-csrf:${SYMFONY_VERSION} symfony/var-dumper:${SYMFONY_VERSION} --no-update
88-
- composer install --no-interaction --profile --no-progress
89+
- make composer-require-symfony-version
90+
- make composer-install
8991

9092
script:
91-
- php ./vendor/bin/phpspec run --format=pretty
92-
- php ./vendor/bin/phpunit $PHPUNIT_FLAGS
93-
- php ./vendor/bin/behat --colors --strict --format=progress -vv
93+
- make phpspec
94+
- php ./vendor/bin/phpunit --coverage-clover ./build/logs/clover.xml
95+
- make behat
96+
97+
allow_failures:
98+
- php: 7.4
99+
env: SYMFONY_VERSION=^5.1

composer.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414
"require" : {
1515
"php": ">=7.2",
1616
"ext-mbstring": "*",
17-
"symfony/config": "~3.4|~4.2",
18-
"symfony/form": "~3.4|~4.2",
19-
"symfony/framework-bundle": "~3.4|~4.2",
20-
"symfony/security-csrf": "~3.4|~4.2",
21-
"symfony/templating": "~3.4|~4.2",
22-
"symfony/twig-bundle": "~3.4|~4.2",
23-
"symfony/var-dumper": "~3.4|~4.2",
17+
"symfony/config": "^3.4|^4.4",
18+
"symfony/form": "^3.4|^4.4",
19+
"symfony/framework-bundle": "^3.4|^4.4",
20+
"symfony/security-csrf": "^3.4|^4.4",
21+
"symfony/templating": "^3.4|^4.4",
22+
"symfony/twig-bundle": "^3.4|^4.4",
23+
"symfony/var-dumper": "^3.4|^4.4",
2424
"doctrine/orm": "^2.4.8",
2525
"abraham/twitteroauth": "~0.6"
2626
},

0 commit comments

Comments
 (0)