Skip to content

Commit

Permalink
TASK: Adjust e2e.sh test script for CI to match local setup for Neos 9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
grebaldi committed Jul 11, 2023
1 parent 7b451a0 commit 58cfe98
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Tests/IntegrationTests/e2e-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,16 +81,16 @@ for fixture in $(pwd)/Tests/IntegrationTests/Fixtures/*/; do
# TODO: optimize this
cd TestDistribution
composer reinstall neos/test-nodetypes
composer reinstall neos/test-site
./flow flow:cache:flush --force
./flow flow:cache:warmup
./flow configuration:show --path Neos.ContentRepositoryRegistry.contentRepositories.default.contentDimensions
if ./flow site:list | grep -q 'Node name'; then
./flow site:prune '*'
fi
#./flow site:import --package-key=Neos.TestSite
./flow configuration:show --path Neos.ContentRepositoryRegistry.contentRepositories.default.contentDimensions
./flow cr:setup
./flow site:create neos-test-site Neos.TestSite Neos.TestNodeTypes:Document.Page
# TODO: Replace with "--assume-yes" flag once "./flow cr:prune" has one
Expand Down
12 changes: 10 additions & 2 deletions Tests/IntegrationTests/e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,20 @@ for fixture in Packages/Application/Neos.Neos.Ui/Tests/IntegrationTests/Fixtures
composer reinstall neos/test-site
./flow flow:cache:flush --force
./flow flow:cache:warmup
./flow configuration:show --path Neos.ContentRepository.contentDimensions
./flow configuration:show --path Neos.ContentRepositoryRegistry.contentRepositories.default.contentDimensions

if ./flow site:list | grep -q 'Node name'; then
./flow site:prune '*'
fi
./flow site:import --package-key=Neos.TestSite

./flow cr:setup
# TODO: Remove "|| true" - This is currently only needed to prevent CircleCI from exiting
./flow site:create neos-test-site Neos.TestSite Neos.TestNodeTypes:Document.Page || true
# TODO: Replace with "--assume-yes" flag once "./flow cr:prune" has one
printf "y\n" | ./flow cr:prune
echo ./flow cr:import --path ./DistributionPackages/Neos.TestSite/Resources/Private/Content
./flow cr:import --path ./DistributionPackages/Neos.TestSite/Resources/Private/Content
echo Done
./flow resource:publish

cd Packages/Application/Neos.Neos.Ui
Expand Down

0 comments on commit 58cfe98

Please sign in to comment.