-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from zivtech/Issue-2/add-probo
Adding probo config file.
- Loading branch information
Showing
52 changed files
with
2,532 additions
and
37 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
image: proboci/ubuntu-16.04-lamp:php-7.2 | ||
steps: | ||
- name: Update composer. | ||
command: '/usr/local/bin/composer self-update' | ||
- name: Install composer packages with dependencies. | ||
command: 'composer install -d /src' | ||
- name: Drupal site install. | ||
plugin: Drupal | ||
clearCaches: false | ||
subDirectory: web | ||
drupalVersion: 8 | ||
configSyncDirectory: config | ||
runInstall: true | ||
- name: Rebuild Caches | ||
command: "drush --root='/var/www/html' cr" | ||
- name: Generate login link. | ||
command: "drush --root='/var/www/html' uli" |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
<?php | ||
/** | ||
* @file | ||
* Engine for the cache commands. | ||
*/ | ||
|
||
use Drupal\Core\Cache\Cache; | ||
|
||
function _drush_cache_command_get($cid, $bin) { | ||
if (is_null($bin)) { | ||
$bin = _drush_cache_bin_default(); | ||
} | ||
return \Drupal::cache($bin)->get($cid); | ||
} | ||
|
||
/** | ||
* The default bin. | ||
* | ||
* @return string | ||
*/ | ||
function _drush_cache_bin_default() { | ||
return 'default'; | ||
} | ||
|
||
function _drush_cache_command_set($cid, $data, $bin, $expire, $tags) { | ||
if (is_null($bin)) { | ||
$bin = _drush_cache_bin_default(); | ||
} | ||
|
||
// Convert the "expire" argument to a valid value for Drupal's cache_set(). | ||
if ($expire == 'CACHE_TEMPORARY') { | ||
$expire = Cache::TEMPORARY; | ||
} | ||
if (!isset($expire) || $expire == 'CACHE_PERMANENT') { | ||
$expire = Cache::PERMANENT; | ||
} | ||
|
||
return \Drupal::cache($bin)->set($cid, $data, $expire, $tags); | ||
} | ||
|
||
function _drush_cache_clear_types($include_bootstrapped_types) { | ||
$types = array( | ||
'drush' => 'drush_cache_clear_drush', | ||
); | ||
if ($include_bootstrapped_types) { | ||
$types += array( | ||
'theme-registry' => 'drush_cache_clear_theme_registry', | ||
'router' => 'drush_cache_clear_router', | ||
'css-js' => 'drush_cache_clear_css_js', | ||
'module-list' => 'drush_get_modules', | ||
'theme-list' => 'drush_get_themes', | ||
'render' => 'drush_cache_clear_render', | ||
); | ||
} | ||
return $types; | ||
} | ||
|
||
function drush_cache_clear_theme_registry() { | ||
\Drupal::service('theme.registry')->reset(); | ||
} | ||
|
||
function drush_cache_clear_router() { | ||
/** @var \Drupal\Core\Routing\RouteBuilderInterface $router_builder */ | ||
$router_builder = \Drupal::service('router.builder'); | ||
$router_builder->rebuild(); | ||
} | ||
|
||
function drush_cache_clear_css_js() { | ||
_drupal_flush_css_js(); | ||
drupal_clear_css_cache(); | ||
drupal_clear_js_cache(); | ||
} | ||
|
||
/** | ||
* Clear the cache of the block output. | ||
*/ | ||
function drush_cache_clear_block() { | ||
// There is no distinct block cache in D8. See https://github.com/drush-ops/drush/issues/1531. | ||
// \Drupal::cache('block')->deleteAll(); | ||
} | ||
|
||
/** | ||
* Clears the render cache entries. | ||
*/ | ||
function drush_cache_clear_render() { | ||
Cache::invalidateTags(['rendered']); | ||
} |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?php | ||
|
||
use Symfony\Component\Yaml\Dumper; | ||
use Drush\Internal\Symfony\Yaml\Dumper; | ||
|
||
/** | ||
* Output formatter 'yaml' | ||
|
Oops, something went wrong.