From 9d15861370ae2b23e134ac604df292099c44249d Mon Sep 17 00:00:00 2001 From: carl alberto Date: Tue, 12 Feb 2019 06:47:06 +0800 Subject: [PATCH 1/2] added travis build and composer --- .gitignore | 2 ++ .travis.yml | 21 +++++++++++++++++++++ composer.json | 20 ++++++++++++++++++++ 3 files changed, 43 insertions(+) create mode 100644 .gitignore create mode 100644 .travis.yml create mode 100644 composer.json 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/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 From eb93c777fde40a8097426efb2f19c1e2672aee46 Mon Sep 17 00:00:00 2001 From: carl alberto Date: Tue, 12 Feb 2019 06:52:56 +0800 Subject: [PATCH 2/2] added travis build bardge --- README.md | 2 ++ 1 file changed, 2 insertions(+) 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: