- PR: silverstripe/silverstripe-framework#8806 (draft)
- State: WIP - Needs tests made green, some regression testing and a peer review from someone
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 | |
$lock = json_decode(file_get_contents("composer.lock"), true); | |
$testXML = file_get_contents('phpunit.xml.dist'); | |
foreach ($lock['packages'] as $package) { | |
if (strpos($package['type'], 'silverstripe') !== false && strpos($testXML, $package['name']) === false) { | |
// Attempt to locate a test folder | |
$directory = 'vendor' . DIRECTORY_SEPARATOR . str_replace('/', DIRECTORY_SEPARATOR, $package['name']). DIRECTORY_SEPARATOR; | |
if (is_dir($directory) && is_dir($directory .'tests')) { | |
echo $package['name'].PHP_EOL; |
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
# Find the right head | |
LOCAL_BRANCH=`git name-rev --name-only HEAD` | |
REMOTE_BRANCH=`git branch -r | grep "$LOCAL_BRANCH"` | |
IFS='/' | |
read -r REMOTE BLAH <<< "$REMOTE_BRANCH" | |
IFS=' ' | |
# Trim the remote name | |
REMOTE=`echo $REMOTE | sed -e 's/^[ \t]*//'` |
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
@use "sass:string"; | |
@use "sass:selector"; | |
@mixin with-block-modifier($modifier) { | |
$selector: #{&}; | |
$pseudo: string.index($selector, '::'); | |
@if ($pseudo) { | |
$selector: string.slice($selector, 0, $pseudo - 1); | |
$pseudo: string.slice(#{&}, $pseudo); |