Skip to content

Commit

Permalink
skip full/slow file import for Behat testing
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Jan 15, 2022
1 parent 3b2d24a commit c7354d6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions demos/init-db.php
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,11 @@ public function importFromFilesystem(string $path, bool $isSub = null): void
if ($fileinfo->isDir()) {
$entity->SubFolder->importFromFilesystem($fileinfo->getPath() . '/' . $fileinfo->getFilename(), true);
}

// skip full/slow import for Behat testing
if ($_ENV['CI'] ?? null) {
break;
}
}
}
}
Expand Down

0 comments on commit c7354d6

Please sign in to comment.