Skip to content
Snippets Groups Projects
Commit 5c11306b authored by Adam Hoenich's avatar Adam Hoenich
Browse files

Test against a fully integrated ORCA fixture.

parent 6af87011
Branches
Tags
No related merge requests found
......@@ -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
......
......@@ -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']);
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment