This repository has been archived on 2025-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
drupalcampbristol/web/modules/contrib/webform/docs/RELEASE-NOTES.md
2017-03-16 15:29:07 +00:00

2.8 KiB

Steps for creating a new release

  1. Cleanup code

  2. Export configuration

  3. Review code

  4. Run tests

  5. Generate release notes

  6. Tag and create a new release

  7. Upload screencast to YouTube

  8. Cleanup code


Convert to short array syntax

drush short-array-syntax webform

Tidy YAML files

@see DEVELOPMENT-CHEATSHEET.md
  1. Export configuration

@see DEVELOPMENT-CHEATSHEET.md
  1. Review code

Online

http://git.drupal.org/project/webform.git 8.x-5.x

Commandline

# Check Drupal coding standards
phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info modules/sandbox/webform

# Check Drupal best practices
phpcs --standard=DrupalPractice --extensions=php,module,inc,install,test,profile,theme,js,css,info modules/sandbox/webform

File Permissions

# Files should be 644 or -rw-r--r--
find * -type d -print0 | xargs -0 chmod 0755

# Directories should be 755 or drwxr-xr-x
find . -type f -print0 | xargs -0 chmod 0644
  1. Run tests

SimpleTest

# Run all tests
php core/scripts/run-tests.sh --url http://localhost/d8_dev --module webform

PHPUnit

# Execute all Webform PHPUnit tests.
cd core
php ../vendor/phpunit/phpunit/phpunit --group webform

cd core

# Execute individual PHPUnit tests.
export SIMPLETEST_DB=mysql://drupal_d8_dev:drupal.@dm1n@localhost/drupal_d8_dev;

# Functional test.    
php ../vendor/phpunit/phpunit/phpunit ../modules/sandbox/webform/tests/src/Functional/WebformExampleFunctionalTest.php

# Kernal test.    
php ../vendor/phpunit/phpunit/phpunit ../modules/sandbox/webform/tests/src/Kernal/Utility/WebformDialogHelperTest.php

# Unit test.
php ../vendor/phpunit/phpunit/phpunit ../modules/sandbox/webform/tests/src/Unit/Utility/WebformYamlTest.php
  1. Generate release notes

Git Release Notes for Drush

drush release-notes --nouser 8.x-5.0-VERSION 8.x-5.x
  1. Tag and create a new release

Tag a release

git tag 8.x-5.0-VERSION
git push --tags
git push origin tag 8.x-5.0-VERSION

Create new release

  1. Upload screencast to YouTube

  • Title : Webform 8.x-5.x-betaXX
  • Tags: Drupal 8,Webform,Form Builder
  • Privacy: listed