Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: sulu/sulu-workshop
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: cd8dfad8aa9fcb7b8a96b6d49e410ab752c15181
Choose a base ref
..
head repository: sulu/sulu-workshop
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 18f3a95fc9a196a3effce5a63935408c69f29630
Choose a head ref
Showing with 10,621 additions and 19,372 deletions.
  1. +5 −3 .env
  2. +1 −6 .gitignore
  3. +19 −5 .travis.yml
  4. +1 −1 LICENSE
  5. +10 −4 README.md
  6. +15 −7 appveyor.yml
  7. +0 −9,769 assets/admin/package-lock.json
  8. +6 −5 assets/admin/package.json
  9. +10 −5 bin/console.php
  10. +39 −37 composer.json
  11. +5,754 −5,381 composer.lock
  12. +0 −53 config/bootstrap.php
  13. +2 −3 config/bundles.php
  14. +4 −4 config/packages/cache.yaml
  15. +3 −3 config/packages/dev/monolog.yaml
  16. +0 −3 config/packages/dev/routing.yaml
  17. +4 −16 config/packages/doctrine.yaml
  18. +0 −4 config/packages/fos_http_cache.yaml
  19. +1 −0 config/packages/framework.yaml
  20. +8 −0 config/packages/prod/deprecations.yaml
  21. +6 −18 config/packages/prod/doctrine.yaml
  22. +2 −11 config/packages/prod/monolog.yaml
  23. +3 −0 config/packages/prod/routing.yaml
  24. +34 −0 config/packages/prod/sulu_document_manager.yaml
  25. +4 −1 config/packages/routing.yaml
  26. +6 −1 config/packages/security_admin.yaml
  27. +2 −0 config/packages/stage/deprecations.yaml
  28. +2 −0 config/packages/stage/routing.yaml
  29. +2 −0 config/packages/stage/sulu_document_manager.yaml
  30. +3 −0 config/packages/sulu_document_manager.yaml
  31. +16 −1 config/packages/sulu_http_cache.yaml
  32. +6 −1 config/packages/test/monolog.yaml
  33. +0 −3 config/packages/test/routing.yaml
  34. +0 −5 config/packages/test/security_admin.yaml
  35. +2 −0 config/packages/test/twig.yaml
  36. +1 −3 config/packages/twig.yaml
  37. +26 −0 config/router.php
  38. +1 −1 config/routes.yaml
  39. +1 −3 config/routes/annotations.yaml
  40. +3 −0 config/routes/annotations_admin.yaml
  41. +3 −0 config/routes/annotations_website.yaml
  42. +1 −0 config/routes/dev/framework.yaml
  43. +0 −3 config/routes/dev/twig.yaml
  44. +1 −0 config/routes/sulu_admin.yaml
  45. 0 config/routes/{sulu_website.yml → sulu_website.yaml}
  46. +1 −1 config/routes_admin.yaml
  47. +1 −1 config/routes_website.yaml
  48. +15 −10 config/services.yaml
  49. +2,559 −2,341 package-lock.json
  50. +9 −9 package.json
  51. +4 −4 phpstan.neon
  52. +6 −5 phpunit.xml.dist
  53. BIN public/apple-touch-icon.png
  54. BIN ....b06871f281fee6b241d60582ae9369b9.ttf → fontawesome-webfont.1e59d2330b4c6deb84b340635ed36249.ttf}
  55. BIN ...ae505a9eed503f8b8e6982036873e.woff2 → fontawesome-webfont.20fd1704ea223900efa9fd4e869efb08.woff2}
  56. BIN ....674f50d287a8c48dc19ba404d20fe713.eot → fontawesome-webfont.8b43027f47b20503057dfbbaa9401fef.eot}
  57. 0 ....912ec66d7572ff821749319396470bde.svg → fontawesome-webfont.c1e38fd9e0e74ba58f7a2b77ef29fdd3.svg}
  58. BIN ...ee66e712a8a08eef5805a46892932ad.woff → fontawesome-webfont.f691f37e57f04c152e2315ab7dbad881.woff}
  59. BIN ...cc92d2e8027712a8c1724abd272cd.ttf → open-sans-v15-latin-300.252a41f69d4c320154a12092f6fbbedd.ttf}
  60. BIN ...56857ebbae3a5a689f213feb11af0.eot → open-sans-v15-latin-300.2aeabc9e8ed0aef227d72fee83c14462.eot}
  61. 0 ...f0b062b2e221df16f3bbd97c2dca8.svg → open-sans-v15-latin-300.bb3b405a4608d51ddb1306c2f641f3dd.svg}
  62. BIN ...7bc9f3526c690e8ada6eee55bec.woff → open-sans-v15-latin-300.df17d4e30091735253a854052256d95d.woff}
  63. BIN ...48ff15f5b347fdba64596b1b1.woff2 → open-sans-v15-latin-300.f2ebdee8c2343f558a0221d276957606.woff2}
  64. BIN ...03bc9e1329c1d9215406a13.ttf → open-sans-v15-latin-300italic.77b8e46c6d3700ac30b3b331c616b296.ttf}
  65. 0 ...a9694ba4e43a880e3de5cf2.svg → open-sans-v15-latin-300italic.91dbf346156bb0d13a1fc928e417509c.svg}
  66. BIN ...d89ea15916e84529d62d3.woff → open-sans-v15-latin-300italic.9dcc0cb70384713a1b77fe27bd422083.woff}
  67. BIN ...6f25cbf28e2ab036f2228cd.eot → open-sans-v15-latin-300italic.dae99bb336f3bdad67e0a18b783547bc.eot}
  68. BIN ...20cd83a0e0b3d0a6f57.woff2 → open-sans-v15-latin-300italic.f87536f8fce296ba6c4205276423d1f8.woff2}
  69. 0 ...f375be3c2a73b58255a02f6d3a9ce.svg → open-sans-v15-latin-600.099f4053beec784ab9d0dc7043a872c2.svg}
  70. BIN ...bd88d8a90c8cdf24cda0ad5f5.woff2 → open-sans-v15-latin-600.27152396a129082ada86fd6444b9ad4b.woff2}
  71. BIN ...8dd9fbbce1c14cfbf8579d7a867a1.eot → open-sans-v15-latin-600.386a74eaffe88d8dfb2b36805f451270.eot}
  72. BIN ...2d7d188586db3c4cf61e1ae43b331.ttf → open-sans-v15-latin-600.3a9ed93414d9101ceabbc83f4b5a1b1e.ttf}
  73. BIN ...20f8937d337b61d5117cf9d7b28.woff → open-sans-v15-latin-600.48d01d6cf2ab4e6a9751d075a034e476.woff}
  74. 0 ...d12758ca65445a23db09778.svg → open-sans-v15-latin-600italic.13fa6db73859d0a05dd9fe658e35a7b6.svg}
  75. BIN ...7334fa5468100972fea6b3d.ttf → open-sans-v15-latin-600italic.3dbed06141b8d2e12cc7daad3bc1138f.ttf}
  76. BIN ...02c0704a0637228dcad03.woff → open-sans-v15-latin-600italic.75088e4c23f9623cd557385ed0652358.woff}
  77. BIN ...c229f830f249b2c3ae116e1.eot → open-sans-v15-latin-600italic.e4e9cbffb20899f360baed364a08228e.eot}
  78. BIN ...cefe41fc03ac346e236.woff2 → open-sans-v15-latin-600italic.fe6c0e0a84eb03400dc58528fcdaad00.woff2}
  79. BIN ...205570002af47fc2b88f9335d19.woff → open-sans-v15-latin-700.2509c35b0cfc629f81e50ce5ef62e4d3.woff}
  80. BIN ...2f169f4a6edbcf8b8d1636cb4.woff2 → open-sans-v15-latin-700.7435e6c2064f36f486266e516e9838b8.woff2}
  81. BIN ...a6749baa5f658a45183ddb5ee159f.eot → open-sans-v15-latin-700.75e0e55bdb3e82dcacf88e90bf17bac6.eot}
  82. 0 ...0b2635b51ba336b4b67a5d0bc03c7.svg → open-sans-v15-latin-700.926388f043fc8117b35b84b241a7f688.svg}
  83. BIN ...8cc656863d52bcb5cd34805ac605b.ttf → open-sans-v15-latin-700.ec32d6be7329ece0789ccf9d0d519c4d.ttf}
  84. BIN ...8c6773a7751156752cec4.woff → open-sans-v15-latin-700italic.05f1eb5f34eab7c128574848527bf371.woff}
  85. 0 ...8e059587318c7ee9014154b.svg → open-sans-v15-latin-700italic.17fb3025708856cda9419f7174accc0c.svg}
  86. BIN ...81ea2d5cd1575ff06c78148.eot → open-sans-v15-latin-700italic.9829e5c71bf7fb8bf54fa0b79c4eaa62.eot}
  87. BIN ...efe0b45841bfd49ce37.woff2 → open-sans-v15-latin-700italic.aff641ffb783d3346c2a56316eb86fea.woff2}
  88. BIN ...3f007ddacfca725283f8e28.ttf → open-sans-v15-latin-700italic.b24e3f82fcd52b322f630b38b6ce253a.ttf}
  89. BIN ...e5b600fe4ad2febc7bdcc59f988a8.ttf → open-sans-v15-latin-800.101a335abdcca47ebdad3289ac6efd8e.ttf}
  90. BIN ...205b9bbb09920089a14dbe9e8.woff2 → open-sans-v15-latin-800.3b2da54475cee88b1387631ce1eb8599.woff2}
  91. BIN ...530a601c798a3ed778cb09188699a.eot → open-sans-v15-latin-800.5a6396325403431b5cabb5ae46db0864.eot}
  92. 0 ...d4d1229e98081302daa52332d62f6.svg → open-sans-v15-latin-800.a526f5fd8be9cb98f502cecc3a34b09b.svg}
  93. BIN ...c4a601fb6ac66f8253fa594dff5.woff → open-sans-v15-latin-800.ff37214e2acbb181f95a0b1fddafb626.woff}
  94. 0 ...355e769f10fd8d0f652b821.svg → open-sans-v15-latin-800italic.03ed3375ba3bee49221a9f05d40ce19f.svg}
  95. BIN ...6a8be0f8453506ec032.woff2 → open-sans-v15-latin-800italic.6d6776db88bc05414be342f8c8ee6ad9.woff2}
  96. BIN ...190550489efe46a7f1138.woff → open-sans-v15-latin-800italic.7c87cb0e01a789a5237a843a4700710f.woff}
  97. BIN ...6b722dcec5392ee32ef7ad1.ttf → open-sans-v15-latin-800italic.c67ad6302376e3df4547f6f89f17eda5.ttf}
  98. BIN ...98a4e8134bae1873e9592b7.eot → open-sans-v15-latin-800italic.e1c7954a5542ee2fd362652f97c17300.eot}
  99. BIN ...3dcb75559a62c2e654035a784e.ttf → open-sans-v15-latin-italic.065fbc09256a2bd6ca8e43dc79e1e38b.ttf}
  100. BIN ...57c93d8da215678eae3b86.woff2 → open-sans-v15-latin-italic.30e38142e06c4c0ee948fc7d851ad780.woff2}
  101. BIN ...7dff832fca56d270d8fd90cd3c.eot → open-sans-v15-latin-italic.83b461cee63c278627e94453df600797.eot}
  102. 0 ...503f70aafcdcc45211a481684d.svg → open-sans-v15-latin-italic.a80aff34ae9733004fbcd60e8ec850d2.svg}
  103. BIN ...cb27ada1a260a2b35e756b8b.woff → open-sans-v15-latin-italic.fdbf3154a22f0e7205a72f7befabb4b8.woff}
  104. 0 ...3671282c90669eb6a10357e41.svg → open-sans-v15-latin-regular.1d0d8b66fa1da76d69b95b6d0ed5cca9.svg}
  105. BIN ...d86803686f4cd1cc3f9ceba59.ttf → open-sans-v15-latin-regular.61747992dd9a412e601e3defa3f3baa6.ttf}
  106. BIN ...15b7d75c35bde69e01b3135.woff → open-sans-v15-latin-regular.87a454b233bedae23f8d1be11e8b4f68.woff}
  107. BIN ...1715340861bdb57318e2f3fdc.eot → open-sans-v15-latin-regular.a356e361ee6765f3d6d4c1d4664f12ab.eot}
  108. BIN ...f4682df8342bd4d276e09.woff2 → open-sans-v15-latin-regular.ec806460121999bcfb12bc264d46d41e.woff2}
  109. BIN ...min/fonts/{sulu.fa8286e5819e777cb1179becbd061e04.ttf → sulu.4c2408e731d0e6fc644faf24f9978d31.ttf}
  110. +1 −0 ...min/fonts/{sulu.7732ab883e8f0146d6a5dd8a928f75a2.svg → sulu.6ee2647c3cff0bdc5e1308eebf486040.svg}
  111. BIN ...n/fonts/{sulu.ede130050a9665225728f1fa5915f59e.woff → sulu.ab0d4220533e95b7dbd01d80b26b0710.woff}
  112. BIN ...nd.559cbe83770ee9374e8f48407bd4c616.gif → checkerBackground.9883f9a87851b3f982e6e6ac284c2f4e.gif}
  113. BIN ...{layers-2x.4f0283c6ce28e888000e978e537a6a56.png → layers-2x.8f2c4d11474275fbc1614b9098334eae.png}
  114. BIN ...mages/{layers.a6137456ed160d7606981aa57c559898.png → layers.416d91365b44e4b4f4777663e6f009f3.png}
  115. BIN ...on-2x.401d815dc206b8dc1b17cd0e37695975.png → marker-icon-2x.680f69f3c2e6b90c1812a813edf67fd7.png}
  116. BIN ...ker-icon.2273e3d8ad9264b7daa5bdbf8e6b47f8.png → marker-icon.2b3e1faf89f94a4835397e7a43b4f77d.png}
  117. BIN ...shadow.44a526eed258222515aa21eaffd14a96.png → marker-shadow.a0c6cc1401c107b501efee6477816891.png}
  118. BIN ...martphone.1484bca6a5a6be3f38daf32516b3bf61.png → smartphone.e3d89c406dd49757ee727c788d3bfd14.png}
  119. BIN ...mages/{tablet.759814f6b7461568f9147e9b47d768d1.png → tablet.783ad1038b2c58628e187a9db538ab19.png}
  120. +0 −10 public/build/admin/main.75555ac73f7615905553.css
  121. +0 −1,260 public/build/admin/main.75555ac73f7615905553.js
  122. +10 −0 public/build/admin/main.8b6ae0bf2bb266236f13.css
  123. +1,615 −0 public/build/admin/main.8b6ae0bf2bb266236f13.js
  124. +1 −1 public/build/admin/{main.75555ac73f7615905553.js.map → main.8b6ae0bf2bb266236f13.js.map}
  125. +11 −11 public/build/admin/manifest.json
  126. +0 −56 public/build/website/0.50632013.js
  127. +56 −0 public/build/website/0.a8a2064a.js
  128. +6 −0 public/build/website/app.2e9cb6cb.css
  129. 0 public/build/website/{app.36b399d5.js → app.8a960a45.js}
  130. +0 −6 public/build/website/app.96f2f080.css
  131. +4 −4 public/build/website/entrypoints.json
  132. +4 −4 public/build/website/manifest.json
  133. 0 public/build/website/{runtime.8523f843.js → runtime.27ab012a.js}
  134. BIN public/favicon.ico
  135. +6 −2 public/index.php
  136. +1 −1 src/{Admin → Common}/DoctrineListRepresentationFactory.php
  137. +5 −3 src/Content/EventDataItem.php
  138. +4 −1 src/Content/EventDataProvider.php
  139. +2 −2 src/Content/EventSelectionContentType.php
  140. +13 −7 src/Controller/Admin/EventController.php
  141. +12 −5 src/Controller/Admin/EventRegistrationController.php
  142. +12 −5 src/Controller/Admin/LocationController.php
  143. +4 −1 src/Controller/{ → Website}/EventWebsiteController.php
  144. +30 −33 src/DataFixtures/Document/DocumentFixture.php
  145. +2 −2 src/DataFixtures/ORM/AppFixtures.php
  146. +1 −1 src/Entity/Event.php
  147. +11 −1 src/Entity/EventRegistration.php
  148. +1 −0 src/Entity/EventTranslation.php
  149. +14 −0 src/Entity/Location.php
  150. +2 −2 src/Form/EventRegistrationType.php
  151. +10 −9 src/Kernel.php
  152. +2 −0 src/Repository/EventRegistrationRepository.php
  153. +11 −5 src/Repository/EventRepository.php
  154. +2 −0 src/Repository/EventTranslationRepository.php
  155. +2 −0 src/Repository/LocationRepository.php
  156. +67 −124 symfony.lock
  157. +1 −1 templates/base.html.twig
  158. +33 −46 tests/Functional/Controller/Admin/EventControllerTest.php
  159. +10 −7 tests/Functional/Controller/Admin/EventRegistrationControllerTest.php
  160. +11 −8 tests/Functional/Controller/{ → Admin}/LocationControllerTest.php
  161. +14 −13 tests/Functional/Controller/{ → Website}/EventWebsiteControllerTest.php
  162. +9 −4 tests/Functional/Pages/EventOverviewTest.php
  163. +9 −4 tests/Functional/Pages/HomepageTest.php
  164. +8 −0 tests/bootstrap.php
  165. +1 −1 tests/phpstan/console-application.php
  166. +1 −1 tests/phpstan/object-manager.php
8 changes: 5 additions & 3 deletions .env
Original file line number Diff line number Diff line change
@@ -28,12 +28,14 @@ MAILER_URL=null://localhost
###< symfony/swiftmailer-bundle ###

###> doctrine/doctrine-bundle ###
# Format described at http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
# Configure your db driver and server_version in config/packages/doctrine.yaml
DATABASE_URL=mysql://root:@127.0.0.1:3306/su_workshop
# Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
# For a PostgreSQL database, use: "postgresql://db_user:db_password@127.0.0.1:5432/db_name?serverVersion=11&charset=utf8"
# IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml
DATABASE_URL=mysql://root:@127.0.0.1:3306/su_workshop?serverVersion=5.7
###< doctrine/doctrine-bundle ###

###> sulu/sulu ###
# Email address that will receive system notifications and might be used as universal fallback value by bundles
SULU_ADMIN_EMAIL=
###< sulu/sulu ###

7 changes: 1 addition & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

###> symfony/framework-bundle ###
/.env.local
/.env.local.php
@@ -12,11 +11,6 @@
.phpunit
/phpunit.xml
###< symfony/phpunit-bridge ###

###> symfony/web-server-bundle ###
/.web-server-pid
###< symfony/web-server-bundle ###

###> friendsofphp/php-cs-fixer ###
/.php_cs
/.php_cs.cache
@@ -30,6 +24,7 @@ yarn-error.log

# var
/var/*
!/var/.gitignore
!/var/.gitkeep

# web
24 changes: 19 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@ sudo: false
language: php

services:
- mysql
- mysql

cache:
directories:
@@ -36,11 +36,12 @@ matrix:
- COMPOSER_FLAGS="--no-interaction"

# Without ENVIRONMENT variables
- php: 7.3
- php: 7.4
install:
- composer create-project sulu/sulu-minimal ../test-create-project-dir --repository="{\"type\":\"path\",\"url\":\"./\"}" --stability=dev -n
- composer create-project sulu/skeleton ../test-create-project-dir --repository="{\"type\":\"path\",\"url\":\"./\"}" --stability=dev -n
- cd ../test-create-project-dir
- echo 'DATABASE_URL=mysql://root:@127.0.0.1:3306/sulu_test' >> .env.local
- echo 'DATABASE_URL=mysql://root:@127.0.0.1:3306/sulu' >> .env.local
- echo 'DATABASE_URL=mysql://root:@127.0.0.1:3306/sulu_test' >> .env.test.local
env:
- NPM_BUILD=true
- COMPOSER_VALIDATE_FLAGS="--strict --no-check-publish"
@@ -59,13 +60,26 @@ script:
# Test Build
- bin/adminconsole sulu:build dev --no-interaction
# Test container build in different environments
- bin/adminconsole cache:clear --env dev
- bin/websiteconsole cache:clear --env dev
- bin/adminconsole cache:clear --env test
- bin/websiteconsole cache:clear --env test
- bin/adminconsole cache:clear --env stage
- bin/websiteconsole cache:clear --env stage
- bin/adminconsole cache:clear --env prod
- bin/websiteconsole cache:clear --env prod
# Test container lint in different environments
- bin/adminconsole lint:container --env dev
- bin/websiteconsole lint:container --env dev
- bin/adminconsole lint:container --env test
- bin/websiteconsole lint:container --env test
- bin/adminconsole lint:container --env stage
- bin/websiteconsole lint:container --env stage
- bin/adminconsole lint:container --env prod
- bin/websiteconsole lint:container --env prod
# Lint
- bin/adminconsole doctrine:ensure-production-settings --env prod
- bin/adminconsole doctrine:schema:validate
- vendor/bin/simple-phpunit
- bin/phpunit
- bin/adminconsole lint:twig templates
- bin/adminconsole lint:yaml config
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2018 Sulu GmbH
Copyright (c) 2020 Sulu GmbH

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
# Symfony Live Berlin 2019 Workshop

This repository contains the project structure for the Sulu workshop at the Symfony Live Berlin 2019. The repository builds upon
the [sulu/skeleton](https://github.com/sulu/skeleton) repository and adds some project specific libraries such as Bootstrap or Symfony Encore.
This repository contains the **project template**, **assignments** and **example solution code** for the Sulu workshop
at the Symfony Live Berlin 2019. The workshop consists of 12 assignments that guide you through creating a small
website that integrates two simple custom entities with using Sulu content management system.
The project builds upon the official [sulu/skeleton](https://github.com/sulu/skeleton) template and adds some project
specific libraries such as Bootstrap or Symfony Encore.

The assignments of the workshop are located in the [assignments](/assignments) folder.
The **assignments** of the workshop are located in the [assignments](/assignments) folder of the repository.
The **example solution code** is available per assignment as separate [repository branch](https://github.com/sulu/sulu-workshop-symfony-live-berlin-2019/branches).
You can easily filter the changes for a single assignment by utilizing the
[compare feature of GitHub](https://github.com/sulu/sulu-workshop-symfony-live-berlin-2019/compare/assignment/08...assignment/09).

## Requirements

@@ -52,7 +58,7 @@ bin/console sulu:build dev --destroy
You can startup the built-in PHP web-server with:

```bash
bin/console server:run
php -S localhost:8009 -t public config/router.php
```

If you have the SYMFONY CLI Tools installed and want to increase your performace you can also use the following command to startup the SYMFONY webserver:
22 changes: 15 additions & 7 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@ environment:
DATABASE_COLLATE: utf8mb4_unicode_ci
NODEJS_VERSION: "12"
matrix:
- PHP_VERSION: 7.2.4
- PHP_VERSION: 7.2.5

services:
- mysql
@@ -23,20 +23,28 @@ hosts:
localhost: 127.0.0.1

init:
- SET PATH=C:\tools\php;%PATH%
- SET PATH=C:\tools\php;C:\tools\composer;%PATH%

cache:
- '%APPDATA%\Composer'
- '%LOCALAPPDATA%\Composer'
- C:\tools\php -> appveyor.yml
- C:\tools\composer.phar -> appveyor.yml
- C:\tools\composer\composer.phar -> appveyor.yml

install:
- ps: Set-Service wuauserv -StartupType Manual
- ps: Install-Product node $env:NODEJS_VERSION

- IF NOT EXIST C:\tools\composer.phar (
cd C:\tools
- IF NOT EXIST C:\tools (
mkdir C:\tools
)

- IF NOT EXIST C:\tools\composer (
mkdir C:\tools\composer
)

- IF NOT EXIST C:\tools\composer\composer.phar (
cd C:\tools\composer
&& appveyor DownloadFile https://getcomposer.org/composer.phar
)

@@ -60,12 +68,12 @@ install:

before_test:
- cd %APPVEYOR_BUILD_FOLDER%
- php -dmemory_limit=-1 C:\tools\composer.phar update --no-interaction --no-progress --prefer-dist --no-ansi
- php -dmemory_limit=-1 C:\tools\composer\composer.phar update --no-interaction --no-progress --prefer-dist --no-ansi

test_script:
- cd %APPVEYOR_BUILD_FOLDER%
- php bin/adminconsole sulu:build dev --no-interaction
- php vendor/bin/simple-phpunit
- php bin/phpunit
- php bin/adminconsole lint:twig templates
- php bin/adminconsole lint:yaml config
- cd assets/admin
Loading