-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fixes #40.
- Loading branch information
Showing
6 changed files
with
78 additions
and
41 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,2 @@ | ||
/vendor | ||
composer.lock |
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,17 @@ | ||
<?xml version="1.0"?> | ||
<!-- PHP_CodeSniffer standard for Drupal modules. --> | ||
<!-- See http://pear.php.net/manual/en/package.php.php-codesniffer.annotated-ruleset.php --> | ||
<ruleset name="Drupal Module"> | ||
<description>Drupal coding standard for contributed modules</description> | ||
|
||
<!-- Exclude unsupported file types. --> | ||
<exclude-pattern>*.gif</exclude-pattern> | ||
<exclude-pattern>*.less</exclude-pattern> | ||
<exclude-pattern>*.png</exclude-pattern> | ||
|
||
<!-- Minified files don't have to comply with coding standards. --> | ||
<exclude-pattern>*.min.css</exclude-pattern> | ||
<exclude-pattern>*.min.js</exclude-pattern> | ||
|
||
<rule ref="./vendor/drupal/coder/coder_sniffer/Drupal" /> | ||
</ruleset> |
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,10 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ruleset name="pbm_default"> | ||
<description>Default PHP CodeSniffer configuration for Messages.</description> | ||
<rule ref="phpcs-ruleset.xml.dist"/> | ||
<arg name="extensions" value="php,inc,module,install,info,test,profile,theme,css,js"/> | ||
<arg name="report" value="full"/> | ||
<arg value="p"/> | ||
<file>.</file> | ||
<exclude-pattern>./vendor</exclude-pattern> | ||
</ruleset> |
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,18 @@ | ||
#!/bin/bash | ||
|
||
# Run either PHPUnit tests or PHP_CodeSniffer tests on Travis CI, depending | ||
# on the passed in parameter. | ||
|
||
case "$1" in | ||
PHP_CodeSniffer) | ||
cd $MODULE_DIR | ||
composer install | ||
./vendor/bin/phpcs | ||
exit $? | ||
;; | ||
*) | ||
ln -s $MODULE_DIR $DRUPAL_DIR/modules/message_subscribe | ||
cd $DRUPAL_DIR | ||
./vendor/bin/phpunit -c ./core/phpunit.xml.dist $MODULE_DIR/tests | ||
exit $? | ||
esac |