diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..dfd6caa --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/vendor +composer.lock \ No newline at end of file diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..23bfdbc --- /dev/null +++ b/.travis.yml @@ -0,0 +1,21 @@ +language: php + +matrix: + include: + - php: '7.0' + env: SNIFF=1 + allow_failures: + - php: '7.0' + env: SNIFF=1 + +before_install: + - if [[ "$SNIFF" == "1" ]]; then export PHPCS_DIR=$PWD/vendor/bin; fi + - if [[ "$SNIFF" == "1" ]]; then export SNIFFS_DIR=$PWD/vendor/wp-coding-standards/wpcs; fi + - composer install + - composer update + - ./vendor/bin/phpcs --config-set installed_paths $SNIFFS_DIR + - ./vendor/bin/phpcs -i + - if [[ "$SNIFF" == "1" ]]; then ./vendor/bin/phpcs --config-set installed_paths $SNIFFS_DIR; fi + +script: + - if [[ "$SNIFF" == "1" ]]; then ./vendor/bin/phpcs -p . --standard=WordPress; fi \ No newline at end of file diff --git a/README.md b/README.md index 4bf07ba..97fae12 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![Build Status](https://travis-ci.org/wpugph/gwt-wordpress.svg?branch=master)](https://travis-ci.org/wpugph/gwt-wordpress) + #Government Web Template (GWT) for WordPress Use this as a a guide for creating your banner slider images: diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..04900ff --- /dev/null +++ b/composer.json @@ -0,0 +1,20 @@ +{ + "name": "iGovPhil/gwt-wordpress", + "license": "GPL-2.0-or-later", + "description": "Philippine Government WordPress Template", + "homepage": "http://i.gov.ph/gwt/wordpress-template/", + "keywords": [ + "wordpress", "wp", "Philippine Govt WP Template" + ], + "support": { + "issues": "https://github.com/iGovPhil/gwt-wordpress/issues" + }, + "require-dev": { + "squizlabs/php_codesniffer": "3.*", + "wp-coding-standards/wpcs": "2.0.*" + }, + "scripts": { + "format": "phpcbf --standard=phpcs.ruleset.xml --report-summary --report-source", + "lint": "phpcs --standard=phpcs.ruleset.xml --report-summary --report-source" + } +} \ No newline at end of file