This file contains hidden or 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
| #!/bin/bash | |
| #usage: mysql-drop-all-tables -d database -u dbuser -p dbpass | |
| TEMP_FILE_PATH='./drop_all_tables.sql' | |
| while getopts d:u:p: option | |
| do | |
| case "${option}" | |
| in |
This file contains hidden or 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
| <?php | |
| #if (${Namespace}) | |
| namespace ${Namespace}; | |
| #end | |
| #parse("PHP File Header") | |
| #set($setter = "set" + $FieldName.substring(0,1).toUpperCase() + $FieldName.substring(1)) | |
| class ${NAME} implements \JsonSerializable |
This file contains hidden or 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
| from __future__ import with_statement | |
| from fabric.api import * | |
| from fabric.contrib.console import confirm | |
| env.use_ssh_config = True | |
| env.user = 'username' | |
| env.hosts = ['hostname'] | |
| release_dir = '/var/www/path/to/website' | |
| remote_context = 'Production' |
This file contains hidden or 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
| # skipping everything above the next line | |
| php composer.phar require --no-progress --no-interaction 'typo3/doctools:dev-master' | |
| FLOW_CONTEXT=Production ./flow typo3.flow:cache:flush | |
| FLOW_CONTEXT=Production ./flow typo3.flow:cache:warmup | |
| FLOW_CONTEXT=Production ./flow typo3.doctools:commandreference:rendercollection Flow | |
| FLOW_CONTEXT=Production ./flow typo3.doctools:reference:rendercollection Flow | |
| # run this in Development - Production doesn't have the needed reflection data |
This file contains hidden or 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
| /* General Adjustmens to the Neos Backend - we only do that if "neos-controls" is visible, that is we are NOT in full-screen mode. */ | |
| /* Bootstrap gives the "container" specific widths (inside media queries); which breaks the margins Neos adds to the body. | |
| Thus, we need to reset these settings. */ | |
| .neos-controls .container { | |
| width: inherit !important; | |
| } | |
| /* The topbar of neos needs some space, so we push the top navigation lower */ | |
| .neos-controls .page-topNavigation { |
This file contains hidden or 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
| <?php | |
| namespace Acme\Acme\TypoScript; | |
| use TYPO3\Flow\Annotations as Flow; | |
| use TYPO3\Neos\Domain\Exception; | |
| use TYPO3\Neos\Service\LinkingService; | |
| use TYPO3\TYPO3CR\Domain\Model\NodeInterface; | |
| use TYPO3\TypoScript\TypoScriptObjects\AbstractTypoScriptObject; | |
| /** |
This file contains hidden or 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
| #!/bin/bash | |
| # Searches for all behat.ci.yaml files in the project and runs the tests | |
| FLOW_CONTEXT=Development/Behat php -S 0.0.0.0:8452 -t Web/ & | |
| phpPid=$! | |
| find . -type f -path "*/Tests/Behavior/behat.ci.yml" -print0 | while IFS= read -r -d $'\0' line; do | |
| bin/behat -c $line | |
| done |
This file contains hidden or 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
| # http://erichogue.ca/2012/09/php/continuous-testing-in-php-with-guard/ | |
| #Unit Tests | |
| guard 'phpunit2', | |
| :command => './bin/phpunit', | |
| :cli => '-c Build/BuildEssentials/PhpUnit/UnitTests.xml', | |
| #Important! No trailing slash! | |
| :tests_path => Dir.glob('Packages/{Framework,Applications,Boilerplates}/*/Tests/Unit'), | |
| #realtime uses log-json which emits tons of Notices about "Array to string conversion" when testing TYPO3.Eel/Context | |
| :realtime => true, |