Skip to content

Commit

Permalink
- Updating test config
Browse files Browse the repository at this point in the history
  • Loading branch information
akadlec committed Nov 9, 2019
1 parent b5670eb commit 9a69200
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .travis.composer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

$version = getenv('NETTE');

if (!$version || $version == 'default') {
exit;
}

echo "Nette version " . $version . PHP_EOL;

$file = __DIR__ . '/composer.json';

$content = file_get_contents($file);

$composer = json_decode($content, TRUE);

$composer['require']['nette/di'] = $version;

$content = json_encode($composer);

file_put_contents($file, $content);
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ before_install:
- composer self-update

before_script:
- php .travis.composer.php
- composer install --no-interaction --prefer-source --dev

script:
Expand Down

0 comments on commit 9a69200

Please sign in to comment.