Skip to content

Commit

Permalink
Merge af4ae71 into 3ed4c75
Browse files Browse the repository at this point in the history
  • Loading branch information
phansys committed Mar 24, 2018
2 parents 3ed4c75 + af4ae71 commit 8455a0e
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 11 deletions.
23 changes: 17 additions & 6 deletions .travis.yml
@@ -1,12 +1,23 @@
language: php
php:
- '5.5'
- '5.6'
- '7.0'
- '7.1'

dist: trusty

sudo: false

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:
- 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:
- mkdir -p build/logs
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Expand Up @@ -13,16 +13,16 @@
],
"require": {
"php": ">=5.5.9",
"monolog/monolog": "^1.0",
"monolog/monolog": "^1.23",
"symfony/console": "^3.0",
"symfony/filesystem": "^3.0",
"symfony/event-dispatcher": "^3.0",
"symfony/finder": "^3.0",
"symfony/yaml": "^3.0",
"symfony/yaml": "^3.1",
"symfony/process": "^3.0"
},
"require-dev": {
"phpunit/phpunit": "4.8.*",
"phpunit/phpunit": "<4.8.35|<5.4.3,>=5.0",
"satooshi/php-coveralls": "~1.0"
},
"autoload": {
Expand Down
2 changes: 1 addition & 1 deletion src/Command/BuiltIn/DeployCommand.php
Expand Up @@ -142,7 +142,7 @@ protected function runDeployment(OutputInterface $output, StrategyInterface $str

protected function runOnHosts(OutputInterface $output, $tasks)
{
$hosts = $this->runtime->getEnvOption('hosts');
$hosts = $this->runtime->getEnvOption('hosts', []);
if (count($hosts) == 0) {
$output->writeln(sprintf(' No hosts defined, skipping %s tasks', $this->getStageName()));
$output->writeln('');
Expand Down
2 changes: 1 addition & 1 deletion src/Command/BuiltIn/Releases/ListCommand.php
Expand Up @@ -73,7 +73,7 @@ protected function execute(InputInterface $input, OutputInterface $output)

$output->writeln('');

$hosts = $this->runtime->getEnvOption('hosts');
$hosts = $this->runtime->getEnvOption('hosts', []);
if (count($hosts) == 0) {
$output->writeln('No hosts defined');
$output->writeln('');
Expand Down

0 comments on commit 8455a0e

Please sign in to comment.