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 30cf764
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
9 changes: 5 additions & 4 deletions Tests/IntegrationTests/e2e-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,16 +81,17 @@ for fixture in $(pwd)/Tests/IntegrationTests/Fixtures/*/; do
# TODO: optimize this
cd TestDistribution
if ./flow site:list | grep -q 'Node name'; then
./flow site:prune '*'
fi
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 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
19 changes: 13 additions & 6 deletions Tests/IntegrationTests/e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,23 @@ for fixture in Packages/Application/Neos.Neos.Ui/Tests/IntegrationTests/Fixtures
ln -s "../${fixture}SitePackage" DistributionPackages/Neos.TestSite

# TODO: optimize this
if ./flow site:list | grep -q 'Node name'; then
./flow site:prune '*'
fi

composer reinstall neos/test-nodetypes
composer reinstall neos/test-site
./flow flow:cache:flush --force
./flow flow:cache:warmup
./flow configuration:show --path Neos.ContentRepository.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
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 30cf764

Please sign in to comment.