2.8 KiB
2.8 KiB
Steps for creating a new release
-
Cleanup code
-
Export configuration
-
Review code
-
Run tests
-
Generate release notes
-
Tag and create a new release
-
Upload screencast to YouTube
-
Cleanup code
drush short-array-syntax webform
Tidy YAML files
@see DEVELOPMENT-CHEATSHEET.md
- Export configuration
@see DEVELOPMENT-CHEATSHEET.md
- Review code
http://git.drupal.org/project/webform.git 8.x-5.x
# 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
# 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
- Run tests
# Run all tests
php core/scripts/run-tests.sh --url http://localhost/d8_dev --module webform
# 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
- Generate release notes
drush release-notes --nouser 8.x-5.0-VERSION 8.x-5.x
- Tag and create a new release
git tag 8.x-5.0-VERSION
git push --tags
git push origin tag 8.x-5.0-VERSION
- Upload screencast to YouTube
- Title : Webform 8.x-5.x-betaXX
- Tags: Drupal 8,Webform,Form Builder
- Privacy: listed