Skip to content
Permalink
Browse files

Move Phar build sooner

  • Loading branch information...
muglug committed Apr 29, 2019
1 parent b9bece4 commit 0824ca3bbd08feb7ecea4977379654cf0ea0709b
Showing with 21 additions and 14 deletions.
  1. +1 −1 .travis.yml
  2. +20 −13 tests/TestConfig.php
@@ -4,8 +4,8 @@ language: php
stages:
- Code style analysis
- test
- Code coverage analysis
- Phar build
- Code coverage analysis

php:
- 7.0
@@ -5,6 +5,9 @@
class TestConfig extends Config
{
/** @var Config\ProjectFileFilter|null */
private static $cached_project_files = null;
/**
* @psalm-suppress PossiblyNullPropertyAssignmentValue because cache_directory isn't strictly nullable
*/
@@ -19,19 +22,23 @@ public function __construct()
$this->base_dir = getcwd() . DIRECTORY_SEPARATOR;
$this->project_files = Config\ProjectFileFilter::loadFromXMLElement(
new \SimpleXMLElement(
'<?xml version="1.0"?>
<projectFiles>
<directory name="src" />
<ignoreFiles>
<directory name="src/Psalm/Internal/Stubs" />
</ignoreFiles>
</projectFiles>'
),
$this->base_dir,
true
);
if (!self::$cached_project_files) {
self::$cached_project_files = Config\ProjectFileFilter::loadFromXMLElement(
new \SimpleXMLElement(
'<?xml version="1.0"?>
<projectFiles>
<directory name="src" />
<ignoreFiles>
<directory name="src/Psalm/Internal/Stubs" />
</ignoreFiles>
</projectFiles>'
),
$this->base_dir,
true
);
}
$this->project_files = self::$cached_project_files;
$this->collectPredefinedConstants();
$this->collectPredefinedFunctions();

0 comments on commit 0824ca3

Please sign in to comment.
You can’t perform that action at this time.