Skip to content

Commit

Permalink
Add semver tests, add environment system arg to app plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
dim-s committed May 11, 2018
1 parent 43f25b3 commit e45b0d5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
var_dump("1.2.*", $ver1->satisfies('1.2.*'));
var_dump("~1.2", $ver1->satisfies('~1.2'));
var_dump("~1.3", $ver1->satisfies('~1.3'));
var_dump("^1.2.0", $ver1->satisfies('^1.2.0'));
var_dump("^1.3.0", $ver1->satisfies('^1.3.0'));

?>
--EXPECT--
Expand All @@ -21,4 +23,8 @@
string(4) "~1.2"
bool(true)
string(4) "~1.3"
bool(false)
string(6) "^1.2.0"
bool(true)
string(6) "^1.3.0"
bool(false)
2 changes: 2 additions & 0 deletions packager/buildSrc/AppPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,8 @@ function run(Event $event)
$exec->setJvmArgs($launcher['jvm-args']);
}

$sysArgs['environment'] = 'dev';

$exec->setSystemProperties($sysArgs);
$exec->setMainClass($launcher['main-class'] ?: 'php.runtime.launcher.Launcher');

Expand Down

0 comments on commit e45b0d5

Please sign in to comment.