Skip to content

Commit

Permalink
Merge pull request #6 from DekodeInteraktiv/new-module-registration
Browse files Browse the repository at this point in the history
New module registration, add Dekode Coding Standards
  • Loading branch information
pederan authored Apr 5, 2018
2 parents c9a9129 + e843fe4 commit 76d89cc
Show file tree
Hide file tree
Showing 6 changed files with 316 additions and 25 deletions.
13 changes: 7 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,16 @@ before_script:
fi
- |
if [[ "$WP_TRAVISCI" == "phpcs" ]] ; then
composer global require wp-coding-standards/wpcs
composer global require wimg/php-compatibility
phpcs --config-set installed_paths $HOME/.composer/vendor/wp-coding-standards/wpcs,$HOME/.composer/vendor/wimg/php-compatibility
composer install
fi
script:
- |
if [[ "$WP_TRAVISCI" == "phpcs" ]] ; then
find -L . -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l
phpcs -p -s -v . --standard=./phpcs.xml --extensions=php --runtime-set testVersion $TRAVIS_PHP_VERSION
find . -name '*.php' ! -path "./vendor/*" ! -path "./wp-content/*" -print0 | xargs -0 -n 1 -P 4 php -l
echo Running phpcs for PHP version $TRAVIS_PHP_VERSION …
./vendor/bin/phpcs --runtime-set testVersion $TRAVIS_PHP_VERSION
fi
notifications:
email: false
email: false
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## [1.1.2]
- Update module to new registration method introduced in [Hogan Core 1.1.7](https://github.com/DekodeInteraktiv/hogan-core/releases/tag/1.1.7)
- Set hogan-core dependency `"dekodeinteraktiv/hogan-core": ">=1.1.7"`
- Add Dekode Coding Standards

## [1.1.1]
`wp_enqueue_scripts` action hook removed. Handled by `hogan-core`.

Expand Down
5 changes: 4 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"require": {
"php": ">=7.0",
"composer/installers": "~1.2",
"dekodeinteraktiv/hogan-core": "^1.0"
"dekodeinteraktiv/hogan-core": ">=1.1.7"
},
"archive": {
"exclude": [
Expand All @@ -18,5 +18,8 @@
"LICENSE",
"phpcs.xml"
]
},
"require-dev": {
"dekodeinteraktiv/coding-standards": "^0.3.1"
}
}
296 changes: 287 additions & 9 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 76d89cc

Please sign in to comment.