Skip to content

Commit

Permalink
PHP and Coding Standards Update (fixes #9) (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
dac514 authored and Ned Zimmerman committed Aug 9, 2018
1 parent 0cdd8d5 commit bd2350f
Show file tree
Hide file tree
Showing 8 changed files with 513 additions and 360 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ notifications:
on_success: never
on_failure: change
php:
- 5.6
- 7.1
- 7.2
env:
- WP_VERSION=latest WP_MULTISITE=1
before_install:
- composer install --dev
before_script:
- if php -v | grep -q 'Xdebug'; then phpenv config-rm xdebug.ini; fi
- bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION
script:
- composer test
after_success:
- bash <(curl -s https://codecov.io/bash)
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Pressbooks Stats

[![Packagist](https://img.shields.io/packagist/l/pressbooks/pressbooks-stats.svg)](https://packagist.org/packages/pressbooks/pressbooks-stats) [![Build Status](https://travis-ci.org/pressbooks/pressbooks-stats.svg?branch=dev)](https://travis-ci.org/pressbooks/pressbooks-stats) [![Code Coverage](https://codecov.io/gh/pressbooks/pressbooks-stats/branch/dev/graph/badge.svg)](https://codecov.io/gh/pressbooks/pressbooks-stats) [![Current Release](https://img.shields.io/github/release/pressbooks/pressbooks-stats.svg)](https://github.com/pressbooks/pressbooks-stats/releases/latest/) [![Packagist](https://img.shields.io/packagist/v/pressbooks/pressbooks-stats.svg)](https://packagist.org/packages/pressbooks/pressbooks-stats) [![Packagist](https://img.shields.io/packagist/dt/pressbooks/pressbooks-stats.svg)](https://packagist.org/packages/pressbooks/pressbooks-stats)
[![Packagist](https://img.shields.io/packagist/l/pressbooks/pressbooks-stats.svg)](https://packagist.org/packages/pressbooks/pressbooks-stats) [![Build Status](https://travis-ci.org/pressbooks/pressbooks-stats.svg?branch=dev)](https://travis-ci.org/pressbooks/pressbooks-stats) [![Current Release](https://img.shields.io/github/release/pressbooks/pressbooks-stats.svg)](https://github.com/pressbooks/pressbooks-stats/releases/latest/) [![Packagist](https://img.shields.io/packagist/v/pressbooks/pressbooks-stats.svg)](https://packagist.org/packages/pressbooks/pressbooks-stats) [![Packagist](https://img.shields.io/packagist/dt/pressbooks/pressbooks-stats.svg)](https://packagist.org/packages/pressbooks/pressbooks-stats)


A Pressbooks plugin which provides some basic activity statistics for a Pressbooks network.
Expand Down
16 changes: 11 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,18 @@
"issues": "https://github.com/pressbooks/pressbooks-stats/issues",
"docs": "https://github.com/pressbooks/pressbooks-stats/wiki"
},
"config": {
"platform": {
"php": "7.1"
}
},
"require": {
"php": ">=7.1",
"composer/installers": "~1.4"
},
"require-dev": {
"phpunit/phpunit": "~5.5",
"humanmade/coding-standards": "^0.2.1"
"pressbooks/coding-standards": "dev-master",
"phpunit/phpunit": "6.5.8"
},
"scripts": {
"test": [
Expand All @@ -31,8 +40,5 @@
"standards": [
"vendor/bin/phpcs --standard=phpcs.ruleset.xml *.php inc/ bin/"
]
},
"require": {
"composer/installers": "^1.2"
}
}
Loading

0 comments on commit bd2350f

Please sign in to comment.