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
// Get headers from input. | |
orgLevelHeaders = document.getElementById('org_level_headers').value.split(','); | |
// Cut the data headers from the levels. | |
// Length will be the number of columns needed to determine hierarchy. | |
const dataHeaders = results.meta.fields.splice(orgLevelHeaders.length); | |
let varString = 'finalData'; | |
results.data.forEach(function (el, index) { | |
for (i = 0; i < orgLevelHeaders.length; i++) { |
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
<?php | |
declare(strict_types=1); | |
namespace App\Entity; | |
use ApiPlatform\Core\Annotation\ApiProperty; | |
use ApiPlatform\Core\Annotation\ApiResource; | |
use Doctrine\ORM\Mapping as ORM; | |
use Symfony\Component\Validator\Constraints as Assert; |
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
types: | |
Thing: | |
parent: false | |
properties: | |
alternateName: ~ | |
description: ~ | |
identifier: ~ | |
image: ~ | |
name: ~ | |
url: ~ |
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
language: php | |
# We want to avoid sudo. This allow us to use Travis docker infrastructure, which means builds start faster and have more CPU available. | |
sudo: false | |
git: | |
depth: 1 | |
php: | |
- '7.1' |
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
<?php | |
/** | |
* Implements hook_config_info(). | |
*/ | |
function backdrop_test_users_config_info() { | |
$prefixes = array(); | |
$prefixes['user.role.developer'] = array( | |
'name_key' => 'name', | |
'label_key' => 'label', |
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
<?php | |
function user_roles($members_only = FALSE, $permission = NULL, $full_objects = FALSE) { | |
$user_roles = &backdrop_static(__FUNCTION__); | |
if (!isset($user_roles)) { | |
$user_roles = array(); | |
// @todo: Consider a cache get here instead of reading from disk. | |
$names = config_get_names_with_prefix('user.role.'); | |
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
# Clone down Backdrop. | |
cd $ROOT_DIR | |
echo "Cloning Backdrop repo..." | |
git clone --branch 1.x --depth 1 https://github.com/backdrop/backdrop.git ${ROOT_DIR}/backdrop | |
# ...bunch more stuff... | |
# Clone down and install contrib modules. | |
for i in $(echo ${ADD_CONTRIB_MODULES} | sed "s/ / /g") | |
do |
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
language: php | |
# We want to avoid sudo. This allow us to use Travis docker infrastructure, which means builds start faster and have more CPU available. | |
sudo: false | |
git: | |
depth: 1 | |
php: | |
- '7.1' |
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
#!/usr/bin/env bash | |
cd ${ROOT_DIR}/backdrop | |
# Enable Testing module. | |
$HOME/.composer/vendor/bin/drush en simpletest -y | |
# Run SimpleTests. | |
php ./core/scripts/run-tests.sh --url http://127.0.0.1:8057 --php ~/.phpenv/versions/$(phpenv version-name)/bin/php "${SIMPLETEST_CLASSES}" | |
earlyexit |
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 function takes the output of the last command and exits if it failed. | |
earlyexit() { | |
CODE="$?" | |
if [ "${CODE}" != "0" ]; then | |
echo --- | |
echo Exiting on failure... | |
echo --- | |
exit 1 | |
fi | |
echo Script succeeded. |