Skip to content

Commit

Permalink
Fix scrutinizer-ci. (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
terabytesoftw committed Nov 12, 2021
1 parent b05ca82 commit f2cb192
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
26 changes: 13 additions & 13 deletions .scrutinizer.yml
Expand Up @@ -4,26 +4,26 @@ checks:
filter:
paths:
- "src/*"
excluded_paths:
- "src/Installer.php"

build:
image: default-bionic

environment:
variables:
YII_ENV: test

php:
version: 8.0.11
ini:
xdebug.mode: coverage

nodes:
analysis:
environment:
php: 8.0.6

tests:
override:
- php-scrutinizer-run

tests-and-coverage:
environment:
php:
version: 8.0.6
ini:
xdebug.mode: coverage

codeception:
dependencies:
override:
- composer self-update
Expand All @@ -32,7 +32,7 @@ build:
tests:
override:
- command: |
php -S 127.0.0.1:8080 -t public public/index-test.php > ./runtime/yii.log 2>&1 &
./yii serve 127.0.0.1:8080 > ./runtime/yii.log 2>&1 &
vendor/bin/codecept run --coverage-xml
on_node: 1
coverage:
Expand Down
2 changes: 1 addition & 1 deletion public/index.php
Expand Up @@ -23,7 +23,7 @@

require_once dirname(__DIR__) . '/preload.php';

if ($_ENV['YII_ENV'] === 'test') {
if (getenv('YII_ENV') === 'test') {
$c3 = dirname(__DIR__) . '/c3.php';
if (file_exists($c3)) {
require_once $c3;
Expand Down

0 comments on commit f2cb192

Please sign in to comment.