Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
17 changes: 0 additions & 17 deletions .editorconfig

This file was deleted.

44 changes: 44 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Project name used for docker containers.
SB_PROJECT_NAME="drupal-ch"

# Web server base url.
SB_BASE_URL="http://localhost:8888"

# The environment. Controls loading of the proper settings.php file.
SB_ENVIRONMENT="development"

# Development mode. Settings tailored to specific tasks (e.g. theming).
SB_DEVELOPMENT_MODE=""

# Drupal admin username.
SB_ADMIN_USER="admin"

# Drupal admin password.
SB_ADMIN_PASS="admin"

# Jira host to download testfiles from.
# SB_JIRA_HOST=""

# Jira username.
# SB_JIRA_USER=""

# Jira password. This variable is commented out by default to not override the Travis value (passwords are usually added as a secured environment variables in Travis). Uncomment it in your .env file.
# SB_JIRA_PASS=""

# Jira projects, as handle:id pairs. e.g. PRO:12345. May contain multiple space separated values.
# SB_JIRA_PROJECTS=""

# Drush base url.
DRUSH_OPTIONS_URI="$SB_BASE_URL"

# Cypress base url.
CYPRESS_BASE_URL="http://localhost:8889"

# `cypress run` will only execute tests based on tags. Examples: "@assignee:$SB_JIRA_USER and @WIP", "@COMPLETED".
# CYPRESS_TAGS=""

# Hash salt required by drupal and used in settings.php.
DRUPAL_HASH_SALT="BANANA"

# The API token for percy.io
# PERCY_TOKEN=""
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@
*.xml text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
*.yml text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2

# PHPStan's baseline uses tabs instead of spaces.
core/.phpstan-baseline.php text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tabwidth=2 diff=php linguist-language=php

# Define binary file attributes.
# - Do not treat them as text.
# - Include binary diff in patches instead of "binary files differ."
Expand Down
120 changes: 63 additions & 57 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,62 +1,68 @@
# SQL backup
*.sql
# gitignore template for Drupal 8 projects
#
# earlier versions of Drupal are tracked in `community/PHP/`
#
# follows official upstream conventions:
# https://www.drupal.org/docs/develop/using-composer

# Ignore directories generated by Composer
/drush/Commands/contrib/
/vendor/
/web/core/
/web/modules/contrib/
/web/themes/contrib/
/web/profiles/contrib/
/web/libraries/
# Ignore configuration files that may contain sensitive information
/docroot/sites/*/*settings*.php
/docroot/sites/*/*services*.yml

# Ignore Drupal's file directory
/web/sites/*/files/
# Ignore paths that may contain user-generated content
/docroot/sites/*/files
/docroot/sites/*/public
/docroot/sites/*/private
/docroot/sites/*/files-public
/docroot/sites/*/files-private

# Ignore SimpleTest multi-site environment.
/web/sites/simpletest
# Ignore paths that may contain temporary files
/docroot/sites/*/translations
/docroot/sites/*/tmp
/docroot/sites/*/cache

# Ignore files generated by PhpStorm
/.idea/
# Ignore drupal core (if not versioning drupal sources)
.editorconfig
.gitattributes
/docroot/README.md
/docroot/vendor
/docroot/core
/docroot/modules/README.txt
/docroot/profiles/README.txt
/docroot/sites/development.services.yml
/docroot/sites/example.settings.local.php
/docroot/sites/example.sites.php
/docroot/sites/README.txt
/docroot/themes/README.txt
/docroot/.csslintrc
/docroot/.editorconfig
/docroot/.eslintignore
/docroot/.eslintrc.json
/docroot/.gitattributes
/docroot/.htaccess
/docroot/.ht.router.php
/docroot/autoload.php
/docroot/composer.json
/docroot/composer.lock
/docroot/example.gitignore
/docroot/index.php
/docroot/INSTALL.txt
/docroot/LICENSE.txt
/docroot/README.txt
/docroot/robots.txt
/docroot/update.php
/docroot/web.config

# Ignore .env files as they are personal
/.env

# Ignore modules and themes checkout out into sites/default for local development.
/web/modules/development
/web/themes/development
node_modules

# Ignore local development settings/services.
/web/sites/*/settings.local.php
/web/sites/*/services.local.yml

cypress/videos
cypress/screenshots
cypress/integration/jira/**/*.feature

docker-compose.override.yml

# Ignore the development install log.
.install.log

# Ignore the silverback persistent snapshots directory
.silverback-snapshots

# Ignore Drupal console
/console/

/.csslintrc
/.eslintignore
/.eslintrc.json
/.ht.router.php
/.htaccess
/INSTALL.txt
/README.txt
/autoload.php
/example.gitignore
/index.php
/robots.txt
/update.php
/web.config
/.drush-lock-update
# Ignore vendor dependencies, contrib, libraries and scripts
/vendor
/docroot/libraries/
/docroot/modules/contrib/
/docroot/themes/contrib/
/composer.phar
/composer
/robo.phar
/robo
/drush.phar
/drush
/drupal.phar
/drupal
38 changes: 2 additions & 36 deletions .lagoon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,48 +10,14 @@ tasks:
# service: cli

post-rollout:
- run:
# If no DB, sync from Master branch.
name: If no Drupal installed - get database from Master
command: |
if [[ ${LAGOON_GIT_SAFE_BRANCH} != "master" ]] && ! drush status --fields=bootstrap | grep -q "Successful"; then
drush -y sql-sync @lagoon.master @self
fi
service: cli
shell: bash
- run:
name: drush updb
command: drush -y updb --cache-clear=0 || (drush cr && drush -y updb --cache-clear=0)
service: cli
- run:
name: drush cr
command: drush -y cr
service: cli
- run:
name: drush cim
command: drush -y cim
service: cli
- run:
name: drush webpack:build
command: if drush | grep -q "webpack:build"; then drush webpack:build; fi
name: drush deploy
command: drush -y deploy
service: cli
- run:
name: drush cr
command: drush -y cr
service: cli
# - run:
# name: Fast-forward tracking branches
# # During a deploy to prod, create a new local branch from the origin's
# # prod branch, then push that new branch to origin. Since the new local
# # branch name matches an existing branch name on origin, a fast-forward
# # merge will occur.
# command: |
# if [[ ${LAGOON_GIT_SAFE_BRANCH} == "prod" ]]; then
# git fetch origin prod:demo && git push origin demo || echo "Fast-forward of \"demo\" branch failed."
# fi
# service: cli
# shell: bash



environments:
Expand Down
73 changes: 0 additions & 73 deletions .travis.yml

This file was deleted.

Loading