Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
automatic_updates
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
automatic_updates
Commits
02406e9b
Commit
02406e9b
authored
11 months ago
by
Ted Bowman
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3441799
: Skip build tests if SQLite is too old
parent
0b506ab7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!1100
Issue #3436993: Ensure exceptions are shown if updating extensions and there...
,
!1058
Issue #3441799 build tests sqlite version
Pipeline
#151361
canceled
11 months ago
Stage: build
Stage: validate
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
package_manager/tests/src/Build/TemplateProjectTestBase.php
+13
-0
13 additions, 0 deletions
package_manager/tests/src/Build/TemplateProjectTestBase.php
with
13 additions
and
0 deletions
package_manager/tests/src/Build/TemplateProjectTestBase.php
+
13
−
0
View file @
02406e9b
...
@@ -11,6 +11,7 @@ use Drupal\Component\Serialization\Yaml;
...
@@ -11,6 +11,7 @@ use Drupal\Component\Serialization\Yaml;
// CORE_MR_ONLY:use Drupal\Composer\Composer;
// CORE_MR_ONLY:use Drupal\Composer\Composer;
use
Drupal\package_manager
\Event\CollectPathsToExcludeEvent
;
use
Drupal\package_manager
\Event\CollectPathsToExcludeEvent
;
use
Drupal\package_manager_test_event_logger
\EventSubscriber\EventLogSubscriber
;
use
Drupal\package_manager_test_event_logger
\EventSubscriber\EventLogSubscriber
;
use
Drupal\sqlite\Driver\Database\sqlite\Install\Tasks
;
use
Drupal\Tests\package_manager
\Traits\AssertPreconditionsTrait
;
use
Drupal\Tests\package_manager
\Traits\AssertPreconditionsTrait
;
use
Drupal\Tests\package_manager
\Traits\FixtureUtilityTrait
;
use
Drupal\Tests\package_manager
\Traits\FixtureUtilityTrait
;
use
Drupal\Tests\RandomGeneratorTrait
;
use
Drupal\Tests\RandomGeneratorTrait
;
...
@@ -62,6 +63,18 @@ abstract class TemplateProjectTestBase extends QuickStartTestBase {
...
@@ -62,6 +63,18 @@ abstract class TemplateProjectTestBase extends QuickStartTestBase {
*/
*/
protected
const
MAX_EXECUTION_TIME
=
20
;
protected
const
MAX_EXECUTION_TIME
=
20
;
/**
* {@inheritdoc}
*/
protected
function
setUp
():
void
{
// Build tests cannot be run if Sqlite minimum version is not met.
$sqlite
=
(
new
\PDO
(
'sqlite::memory:'
))
->
query
(
'select sqlite_version()'
)
->
fetch
()[
0
];
if
(
version_compare
(
$sqlite
,
Tasks
::
SQLITE_MINIMUM_VERSION
)
<
0
)
{
$this
->
markTestSkipped
();
}
parent
::
setUp
();
}
/**
/**
* {@inheritdoc}
* {@inheritdoc}
*/
*/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment