Skip to content

Commit 868d0c9

Browse files
Pierre Rollandolaurendeau
Pierre Rolland
authored andcommitted
Improved testing on Travis by adding Symfony versions (#9)
* [twgit] Init feature 'feature/improve-testing-sf2-3'. * Updated travis.yml and removed composer.lock * Removed composer update in travis.yml * Changed distribution for Travis (PHP 5.5 support) * Updated travis bin/console command * Removed step to install console as it is part of the first require * Return 0 at the end of the command * Added composer.lock (to avoid memory issues on Travis) * Added composer update in travis.yml * Try to improve php memory limit * Backticks * travis debug * travis debug * travis debug * Changed tests dependency version
1 parent 513dcbb commit 868d0c9

File tree

4 files changed

+14
-2829
lines changed

4 files changed

+14
-2829
lines changed

.travis.yml

+11-5
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,22 @@
1+
dist: trusty # for php 5.5 support
12
language: php
23

34
php:
4-
- '5.3'
5-
- '5.4'
65
- '5.5'
76
- '5.6'
87
- '7.0'
9-
- '7.1'
8+
- '7.4'
9+
10+
env:
11+
- SYMFONY_VERSION="2.1"
12+
- SYMFONY_VERSION="2.8"
13+
- SYMFONY_VERSION="3.4"
1014

1115
before_script:
12-
- composer update
13-
script: bin/phpunit --coverage-clover=coverage.clover Tests
16+
- echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
17+
- phpenv config-rm xdebug.ini
18+
- composer require symfony/framework-bundle:${SYMFONY_VERSION}
19+
script: bin/phpunit --coverage-clover=coverage.clover Tests
1420
after_script:
1521
- wget https://scrutinizer-ci.com/ocular.phar
1622
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover

Command/VhostDefineCommand.php

+2
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ protected function execute(InputInterface $input, OutputInterface $output)
5555
}
5656
}
5757
}
58+
59+
return 0;
5860
}
5961

6062
/**

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"symfony/http-kernel": ">=2.1"
1313
},
1414
"require-dev": {
15-
"matthiasnoback/symfony-dependency-injection-test": "0.*",
15+
"matthiasnoback/symfony-dependency-injection-test": "0.7.*",
1616
"phpunit/phpunit": "~4.8"
1717
},
1818
"license": "MIT",

0 commit comments

Comments
 (0)