Skip to content

Commit 76d89cc

Browse files
authored
Merge pull request #6 from DekodeInteraktiv/new-module-registration
New module registration, add Dekode Coding Standards
2 parents c9a9129 + e843fe4 commit 76d89cc

File tree

6 files changed

+316
-25
lines changed

6 files changed

+316
-25
lines changed

.travis.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,16 @@ before_script:
2626
fi
2727
- |
2828
if [[ "$WP_TRAVISCI" == "phpcs" ]] ; then
29-
composer global require wp-coding-standards/wpcs
30-
composer global require wimg/php-compatibility
31-
phpcs --config-set installed_paths $HOME/.composer/vendor/wp-coding-standards/wpcs,$HOME/.composer/vendor/wimg/php-compatibility
29+
composer install
3230
fi
31+
3332
script:
3433
- |
3534
if [[ "$WP_TRAVISCI" == "phpcs" ]] ; then
36-
find -L . -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l
37-
phpcs -p -s -v . --standard=./phpcs.xml --extensions=php --runtime-set testVersion $TRAVIS_PHP_VERSION
35+
find . -name '*.php' ! -path "./vendor/*" ! -path "./wp-content/*" -print0 | xargs -0 -n 1 -P 4 php -l
36+
echo Running phpcs for PHP version $TRAVIS_PHP_VERSION …
37+
./vendor/bin/phpcs --runtime-set testVersion $TRAVIS_PHP_VERSION
3838
fi
39+
3940
notifications:
40-
email: false
41+
email: false

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## [1.1.2]
4+
- Update module to new registration method introduced in [Hogan Core 1.1.7](https://github.com/DekodeInteraktiv/hogan-core/releases/tag/1.1.7)
5+
- Set hogan-core dependency `"dekodeinteraktiv/hogan-core": ">=1.1.7"`
6+
- Add Dekode Coding Standards
7+
38
## [1.1.1]
49
`wp_enqueue_scripts` action hook removed. Handled by `hogan-core`.
510

composer.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"require": {
88
"php": ">=7.0",
99
"composer/installers": "~1.2",
10-
"dekodeinteraktiv/hogan-core": "^1.0"
10+
"dekodeinteraktiv/hogan-core": ">=1.1.7"
1111
},
1212
"archive": {
1313
"exclude": [
@@ -18,5 +18,8 @@
1818
"LICENSE",
1919
"phpcs.xml"
2020
]
21+
},
22+
"require-dev": {
23+
"dekodeinteraktiv/coding-standards": "^0.3.1"
2124
}
2225
}

composer.lock

Lines changed: 287 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)