Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lightning_workflow
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
lightning_workflow
Commits
5c11306b
Commit
5c11306b
authored
6 years ago
by
Adam Hoenich
Browse files
Options
Downloads
Patches
Plain Diff
Test against a fully integrated ORCA fixture.
parent
6af87011
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.travis.yml
+11
-6
11 additions, 6 deletions
.travis.yml
tests/update.php
+9
-0
9 additions, 0 deletions
tests/update.php
update.sh
+2
-0
2 additions, 0 deletions
update.sh
with
22 additions
and
6 deletions
.travis.yml
+
11
−
6
View file @
5c11306b
...
...
@@ -11,11 +11,16 @@ php:
-
7.1
env
:
-
VERSION=HEAD
-
VERSION=3.3.0
# The final CI slot should be used to test the update path from the oldest
# available database fixture.
-
VERSION=HEAD ORCA_FIXTURE_FLAGS='--dev --sut-only' ORCA_TEST_FLAGS=--sut-only
-
VERSION=1.0.0-rc2 ORCA_FIXTURE_FLAGS='--dev --sut-only' ORCA_TEST_FLAGS=--sut-only
-
VERSION=1.0.0-rc2
-
VERSION=1.0.0-rc2 ORCA_FIXTURE_FLAGS=--dev
matrix
:
fast_finish
:
true
allow_failures
:
-
env
:
VERSION=1.0.0-rc2
-
env
:
VERSION=1.0.0-rc2 ORCA_FIXTURE_FLAGS=--dev
addons
:
chrome
:
stable
...
...
@@ -44,7 +49,7 @@ install:
-
"
$ORCA/bin/travis/install
8.x-3.x"
# Use ORCA to build the code base.
-
orca fixture:init -
-force --sut-only --sut $ORCA_SUT
-
orca fixture:init -
f --sut $ORCA_SUT $ORCA_FIXTURE_FLAGS
-
# Install dev dependencies.
-
composer require --dev drupal/inline_entity_form --working-dir $ORCA_FIXTURE
...
...
@@ -53,7 +58,7 @@ before_script:
-
$TRAVIS_BUILD_DIR/update.sh $VERSION
script
:
-
orca tests:run --sut
-only --sut $ORCA_SUT
-
orca tests:run --sut
$ORCA_SUT $ORCA_TEST_FLAGS
after_failure
:
-
cd docroot
...
...
This diff is collapsed.
Click to expand it.
tests/update.php
+
9
−
0
View file @
5c11306b
...
...
@@ -19,3 +19,12 @@ Drupal::configFactory()
Drupal
::
configFactory
()
->
getEditable
(
'lightning_api.settings'
)
->
delete
();
Drupal
::
configFactory
()
->
getEditable
(
'media.type.tweet'
)
->
delete
();
Drupal
::
service
(
'plugin.cache_clearer'
)
->
clearCachedDefinitions
();
$node_type
=
entity_load
(
'node_type'
,
'page'
);
if
(
$node_type
)
{
$node_type
->
delete
();
}
user_role_revoke_permissions
(
'authenticated'
,
[
'use text format basic_html'
]);
This diff is collapsed.
Click to expand it.
update.sh
+
2
−
0
View file @
5c11306b
...
...
@@ -7,6 +7,8 @@ if [ -e $FIXTURE ]; then
php core/scripts/db-tools.php import
$FIXTURE
drush php:script
$TRAVIS_BUILD_DIR
/tests/update.php
# Reinstall modules which were blown away by the database restore.
orca fixture:enable-modules
fi
drush updatedb
--yes
...
...
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