-
-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/7.0' into 7.1
# Conflicts: # .circleci/config.yml # Classes/Fusion/ExceptionHandler/PageExceptionHandler.php # lerna.json # packages/babel-preset-neos-ui/package.json # packages/build-essentials/package.json # packages/debug-reason-for-rendering/package.json # packages/jest-preset-neos-ui/package.json # packages/neos-ts-interfaces/package.json # packages/neos-ui-backend-connector/package.json # packages/neos-ui-ckeditor-bindings/package.json # packages/neos-ui-ckeditor5-bindings/package.json # packages/neos-ui-constants/package.json # packages/neos-ui-containers/package.json # packages/neos-ui-contentrepository/package.json # packages/neos-ui-decorators/package.json # packages/neos-ui-editors/package.json # packages/neos-ui-extensibility/package.json # packages/neos-ui-guest-frame/package.json # packages/neos-ui-i18n/package.json # packages/neos-ui-inspector/package.json # packages/neos-ui-redux-store/package.json # packages/neos-ui-sagas/package.json # packages/neos-ui-validators/package.json # packages/neos-ui-views/package.json # packages/neos-ui/package.json # packages/positional-array-sorter/package.json # packages/react-proptypes/package.json # packages/react-ui-components/package.json # packages/utils-helpers/package.json # packages/utils-helpers/src/getVersion.ts # packages/utils-logger/package.json # packages/utils-redux/package.json
- Loading branch information
Showing
20 changed files
with
227 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
version: "3.4" | ||
services: | ||
|
||
php: | ||
image: thecodingmachine/php:7.4-v4-cli | ||
command: tail -f /dev/null | ||
ports: | ||
- 8081:8081 | ||
volumes: | ||
- composer_cache:/home/circleci/.composer/cache | ||
environment: | ||
# Enable GD | ||
PHP_EXTENSION_GD: 1 | ||
|
||
db: | ||
image: circleci/mariadb:10.2 | ||
environment: | ||
MYSQL_DATABASE: neos | ||
MYSQL_ROOT_PASSWORD: not_a_real_password | ||
|
||
volumes: | ||
composer_cache: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
if [ -z "$1" ] | ||
then | ||
echo "No testcafe browser supplied, e.g. 'chrome:headless'" | ||
exit 1 | ||
fi | ||
|
||
function dc() { | ||
docker-compose -f ./Tests/IntegrationTests/docker-compose.yaml $@ | ||
} | ||
|
||
echo "#############################################################################" | ||
echo "# Start docker environment... #" | ||
echo "#############################################################################" | ||
dc down | ||
dc up -d | ||
dc exec -T php bash <<-'BASH' | ||
rm -rf /usr/src/app/* | ||
BASH | ||
docker cp $(pwd)/Tests/IntegrationTests/. $(dc ps -q php):/usr/src/app | ||
sleep 2 | ||
|
||
echo "" | ||
echo "#############################################################################" | ||
echo "# Install dependencies... #" | ||
echo "#############################################################################" | ||
dc exec -T php bash <<-'BASH' | ||
cd TestDistribution | ||
composer install | ||
BASH | ||
|
||
echo "" | ||
echo "#############################################################################" | ||
echo "# Initialize Neos... #" | ||
echo "#############################################################################" | ||
docker cp $(pwd)/. $(dc ps -q php):/usr/src/app/TestDistribution/Packages/Application/neos-ui | ||
dc exec -T php bash <<-'BASH' | ||
cd TestDistribution | ||
rm -rf Packages/Application/Neos.Neos.Ui | ||
mv Packages/Application/neos-ui Packages/Application/Neos.Neos.Ui | ||
sed -i 's/host: 127.0.0.1/host: db/g' Configuration/Settings.yaml | ||
./flow flow:cache:flush | ||
./flow flow:cache:warmup | ||
./flow doctrine:migrate | ||
./flow user:create --username=admin --password=password --first-name=John --last-name=Doe --roles=Administrator || true | ||
BASH | ||
|
||
echo "" | ||
echo "#############################################################################" | ||
echo "# Start Flow Server... #" | ||
echo "#############################################################################" | ||
dc exec -T php bash <<-'BASH' | ||
cd TestDistribution | ||
./flow server:run --port 8081 --host 0.0.0.0 & | ||
BASH | ||
|
||
echo "" | ||
echo "#############################################################################" | ||
echo "# Run E2E tests... #" | ||
echo "#############################################################################" | ||
for fixture in $(pwd)/Tests/IntegrationTests/Fixtures/*/; do | ||
echo "" | ||
echo "########################################" | ||
echo "# Fixture '$(basename $fixture)'" | ||
echo "########################################" | ||
dc exec -T php bash <<-BASH | ||
mkdir -p ./TestDistribution/DistributionPackages | ||
rm -rf ./TestDistribution/DistributionPackages/Neos.TestNodeTypes | ||
ln -s "../../SharedNodeTypesPackage" ./TestDistribution/DistributionPackages/Neos.TestNodeTypes | ||
rm -rf ./TestDistribution/DistributionPackages/Neos.TestSite | ||
ln -s "../../Fixtures/$(basename $fixture)/SitePackage" ./TestDistribution/DistributionPackages/Neos.TestSite | ||
# TODO: optimize this | ||
cd TestDistribution | ||
./flow flow:package:rescan > /dev/null | ||
./flow flow:cache:flush > /dev/null | ||
if ./flow site:list | grep -q 'Node name'; then | ||
./flow site:prune '*' > /dev/null | ||
fi | ||
./flow site:import --package-key=Neos.TestSite | ||
./flow resource:publish > /dev/null | ||
BASH | ||
|
||
yarn run testcafe "$1" "${fixture}*.e2e.js" \ | ||
--selector-timeout=10000 --assertion-timeout=30000 --debug-on-fail | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.