mirror of
https://github.com/andres-montanez/Magallanes
synced 2024-06-01 21:32:16 +02:00
Update config for Travis CI in order to run tests in a containerized Trusty environment with PHP 7.2 and lowest dependencies on PHP 7.1
This commit is contained in:
parent
b13b3f92b6
commit
3d04419884
23
.travis.yml
23
.travis.yml
|
@ -1,12 +1,23 @@
|
||||||
language: php
|
language: php
|
||||||
php:
|
|
||||||
- '5.5'
|
dist: trusty
|
||||||
- '5.6'
|
|
||||||
- '7.0'
|
sudo: false
|
||||||
- '7.1'
|
|
||||||
|
matrix:
|
||||||
|
fast_finish: true
|
||||||
|
include:
|
||||||
|
- php: 5.5
|
||||||
|
- php: 5.6
|
||||||
|
- php: 7.0
|
||||||
|
- php: 7.1
|
||||||
|
- php: 7.1
|
||||||
|
env: dependencies=lowest
|
||||||
|
- php: 7.2
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- composer install
|
- composer install --optimize-autoloader --classmap-authoritative --no-interaction
|
||||||
|
- if [ "$dependencies" = "lowest" ]; then composer update --prefer-lowest --prefer-stable --optimize-autoloader --classmap-authoritative --no-interaction; fi;
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- mkdir -p build/logs
|
- mkdir -p build/logs
|
||||||
|
|
|
@ -13,16 +13,16 @@
|
||||||
],
|
],
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=5.5.9",
|
"php": ">=5.5.9",
|
||||||
"monolog/monolog": "^1.0",
|
"monolog/monolog": "^1.23",
|
||||||
"symfony/console": "^3.0",
|
"symfony/console": "^3.0",
|
||||||
"symfony/filesystem": "^3.0",
|
"symfony/filesystem": "^3.0",
|
||||||
"symfony/event-dispatcher": "^3.0",
|
"symfony/event-dispatcher": "^3.0",
|
||||||
"symfony/finder": "^3.0",
|
"symfony/finder": "^3.0",
|
||||||
"symfony/yaml": "^3.0",
|
"symfony/yaml": "^3.0.7",
|
||||||
"symfony/process": "^3.0"
|
"symfony/process": "^3.0"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpunit/phpunit": "4.8.*",
|
"phpunit/phpunit": "<4.8.35|<5.4.3,>=5.0",
|
||||||
"satooshi/php-coveralls": "~1.0"
|
"satooshi/php-coveralls": "~1.0"
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
|
|
|
@ -142,7 +142,7 @@ class DeployCommand extends AbstractCommand
|
||||||
|
|
||||||
protected function runOnHosts(OutputInterface $output, $tasks)
|
protected function runOnHosts(OutputInterface $output, $tasks)
|
||||||
{
|
{
|
||||||
$hosts = $this->runtime->getEnvOption('hosts');
|
$hosts = $this->runtime->getEnvOption('hosts', []);
|
||||||
if (count($hosts) == 0) {
|
if (count($hosts) == 0) {
|
||||||
$output->writeln(sprintf(' No hosts defined, skipping %s tasks', $this->getStageName()));
|
$output->writeln(sprintf(' No hosts defined, skipping %s tasks', $this->getStageName()));
|
||||||
$output->writeln('');
|
$output->writeln('');
|
||||||
|
|
|
@ -73,7 +73,7 @@ class ListCommand extends AbstractCommand
|
||||||
|
|
||||||
$output->writeln('');
|
$output->writeln('');
|
||||||
|
|
||||||
$hosts = $this->runtime->getEnvOption('hosts');
|
$hosts = $this->runtime->getEnvOption('hosts', []);
|
||||||
if (count($hosts) == 0) {
|
if (count($hosts) == 0) {
|
||||||
$output->writeln('No hosts defined');
|
$output->writeln('No hosts defined');
|
||||||
$output->writeln('');
|
$output->writeln('');
|
||||||
|
|
Loading…
Reference in a new issue