Skip to content

Commit

Permalink
Improved testing on Travis by adding Symfony versions (#9)
Browse files Browse the repository at this point in the history
* [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
  • Loading branch information
Pierre Rolland authored and olaurendeau committed Jan 10, 2020
1 parent 513dcbb commit 868d0c9
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2,829 deletions.
16 changes: 11 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
dist: trusty # for php 5.5 support
language: php

php:
- '5.3'
- '5.4'
- '5.5'
- '5.6'
- '7.0'
- '7.1'
- '7.4'

env:
- SYMFONY_VERSION="2.1"
- SYMFONY_VERSION="2.8"
- SYMFONY_VERSION="3.4"

before_script:
- composer update
script: bin/phpunit --coverage-clover=coverage.clover Tests
- echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- phpenv config-rm xdebug.ini
- composer require symfony/framework-bundle:${SYMFONY_VERSION}
script: bin/phpunit --coverage-clover=coverage.clover Tests
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
2 changes: 2 additions & 0 deletions Command/VhostDefineCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ protected function execute(InputInterface $input, OutputInterface $output)
}
}
}

return 0;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"symfony/http-kernel": ">=2.1"
},
"require-dev": {
"matthiasnoback/symfony-dependency-injection-test": "0.*",
"matthiasnoback/symfony-dependency-injection-test": "0.7.*",
"phpunit/phpunit": "~4.8"
},
"license": "MIT",
Expand Down
Loading

0 comments on commit 868d0c9

Please sign in to comment.