Skip to content

Commit

Permalink
Merge pull request #44 from WordPoints/develop
Browse files Browse the repository at this point in the history
1.3.0
  • Loading branch information
JDGrimes authored Feb 10, 2018
2 parents 0ea3ac0 + 2d5c08d commit f62c479
Show file tree
Hide file tree
Showing 21 changed files with 877 additions and 112 deletions.
116 changes: 104 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,27 @@ php:

env:
- TRAVISCI_RUN=codesniff
- TRAVISCI_RUN=phpunit WP_VERSION=develop WORDPOINTS_VERSION=develop WC_VERSION=release/3.2
- TRAVISCI_RUN=phpunit WP_VERSION=4.8 WORDPOINTS_VERSION=develop WC_VERSION=release/3.2
- TRAVISCI_RUN=phpunit WP_VERSION=4.7 WORDPOINTS_VERSION=develop WC_VERSION=release/3.2
- TRAVISCI_RUN=phpunit WP_VERSION=develop WORDPOINTS_VERSION=develop WC_VERSION=master
- TRAVISCI_RUN=phpunit WP_VERSION=develop WORDPOINTS_VERSION=develop WC_VERSION=release/3.3
- TRAVISCI_RUN=phpunit WP_VERSION=develop WORDPOINTS_VERSION=master WC_VERSION=master
- TRAVISCI_RUN=phpunit WP_VERSION=develop WORDPOINTS_VERSION=master WC_VERSION=release/3.3
- TRAVISCI_RUN=phpunit WP_VERSION=4.9 WORDPOINTS_VERSION=develop WC_VERSION=master
- TRAVISCI_RUN=phpunit WP_VERSION=4.9 WORDPOINTS_VERSION=develop WC_VERSION=release/3.3
- TRAVISCI_RUN=phpunit WP_VERSION=4.9 WORDPOINTS_VERSION=master WC_VERSION=master
- TRAVISCI_RUN=phpunit WP_VERSION=4.9 WORDPOINTS_VERSION=master WC_VERSION=release/3.3
- TRAVISCI_RUN=phpunit WP_VERSION=4.8 WORDPOINTS_VERSION=develop WC_VERSION=master
- TRAVISCI_RUN=phpunit WP_VERSION=4.8 WORDPOINTS_VERSION=develop WC_VERSION=release/3.3
- TRAVISCI_RUN=phpunit WP_VERSION=4.8 WORDPOINTS_VERSION=master WC_VERSION=master
- TRAVISCI_RUN=phpunit WP_VERSION=4.8 WORDPOINTS_VERSION=master WC_VERSION=release/3.3
- TRAVISCI_RUN=phpunit WP_VERSION=4.7 WORDPOINTS_VERSION=master WC_VERSION=master
- TRAVISCI_RUN=phpunit WP_VERSION=4.7 WORDPOINTS_VERSION=master WC_VERSION=release/3.3

dist: trusty

sudo: false
# See https://github.com/WordPoints/wordpoints/issues/757
group: deprecated-2017Q4

sudo: true

addons:
apt:
Expand All @@ -31,28 +45,94 @@ matrix:
# Use Ubuntu Precise because Trusty doesn't support PHP 5.2 or 5.3.
- php: 5.3
dist: precise
env: TRAVISCI_RUN=phpunit WP_VERSION=develop WORDPOINTS_VERSION=develop WC_VERSION=release/3.2
env: TRAVISCI_RUN=phpunit WP_VERSION=develop WORDPOINTS_VERSION=develop WC_VERSION=master
- php: 5.3
dist: precise
env: TRAVISCI_RUN=phpunit WP_VERSION=develop WORDPOINTS_VERSION=develop WC_VERSION=release/3.3
- php: 5.3
dist: precise
env: TRAVISCI_RUN=phpunit WP_VERSION=develop WORDPOINTS_VERSION=master WC_VERSION=master
- php: 5.3
dist: precise
env: TRAVISCI_RUN=phpunit WP_VERSION=develop WORDPOINTS_VERSION=master WC_VERSION=release/3.3
- php: 5.3
dist: precise
env: TRAVISCI_RUN=phpunit WP_VERSION=4.8 WORDPOINTS_VERSION=develop WC_VERSION=release/3.2
env: TRAVISCI_RUN=phpunit WP_VERSION=4.9 WORDPOINTS_VERSION=develop WC_VERSION=master
- php: 5.3
dist: precise
env: TRAVISCI_RUN=phpunit WP_VERSION=4.7 WORDPOINTS_VERSION=develop WC_VERSION=release/3.2
env: TRAVISCI_RUN=phpunit WP_VERSION=4.9 WORDPOINTS_VERSION=develop WC_VERSION=release/3.3
- php: 5.3
dist: precise
env: TRAVISCI_RUN=phpunit WP_VERSION=4.9 WORDPOINTS_VERSION=master WC_VERSION=master
- php: 5.3
dist: precise
env: TRAVISCI_RUN=phpunit WP_VERSION=4.9 WORDPOINTS_VERSION=master WC_VERSION=release/3.3
- php: 5.3
dist: precise
env: TRAVISCI_RUN=phpunit WP_VERSION=4.8 WORDPOINTS_VERSION=develop WC_VERSION=master
- php: 5.3
dist: precise
env: TRAVISCI_RUN=phpunit WP_VERSION=4.8 WORDPOINTS_VERSION=develop WC_VERSION=release/3.3
- php: 5.3
dist: precise
env: TRAVISCI_RUN=phpunit WP_VERSION=4.8 WORDPOINTS_VERSION=master WC_VERSION=master
- php: 5.3
dist: precise
env: TRAVISCI_RUN=phpunit WP_VERSION=4.8 WORDPOINTS_VERSION=master WC_VERSION=release/3.3
- php: 5.3
dist: precise
env: TRAVISCI_RUN=phpunit WP_VERSION=4.7 WORDPOINTS_VERSION=master WC_VERSION=master
- php: 5.3
dist: precise
env: TRAVISCI_RUN=phpunit WP_VERSION=4.7 WORDPOINTS_VERSION=master WC_VERSION=release/3.3
- php: 5.2
dist: precise
env: TRAVISCI_RUN=phpunit WP_VERSION=develop WORDPOINTS_VERSION=develop WC_VERSION=master
- php: 5.2
dist: precise
env: TRAVISCI_RUN=phpunit WP_VERSION=develop WORDPOINTS_VERSION=develop WC_VERSION=release/3.3
- php: 5.2
dist: precise
env: TRAVISCI_RUN=phpunit WP_VERSION=develop WORDPOINTS_VERSION=develop WC_VERSION=release/3.2
env: TRAVISCI_RUN=phpunit WP_VERSION=develop WORDPOINTS_VERSION=master WC_VERSION=master
- php: 5.2
dist: precise
env: TRAVISCI_RUN=phpunit WP_VERSION=4.8 WORDPOINTS_VERSION=develop WC_VERSION=release/3.2
env: TRAVISCI_RUN=phpunit WP_VERSION=develop WORDPOINTS_VERSION=master WC_VERSION=release/3.3
- php: 5.2
dist: precise
env: TRAVISCI_RUN=phpunit WP_VERSION=4.7 WORDPOINTS_VERSION=develop WC_VERSION=release/3.2
env: TRAVISCI_RUN=phpunit WP_VERSION=4.9 WORDPOINTS_VERSION=develop WC_VERSION=master
- php: 5.2
dist: precise
env: TRAVISCI_RUN=phpunit WP_VERSION=4.9 WORDPOINTS_VERSION=develop WC_VERSION=release/3.3
- php: 5.2
dist: precise
env: TRAVISCI_RUN=phpunit WP_VERSION=4.9 WORDPOINTS_VERSION=master WC_VERSION=master
- php: 5.2
dist: precise
env: TRAVISCI_RUN=phpunit WP_VERSION=4.9 WORDPOINTS_VERSION=master WC_VERSION=release/3.3
- php: 5.2
dist: precise
env: TRAVISCI_RUN=phpunit WP_VERSION=4.8 WORDPOINTS_VERSION=develop WC_VERSION=master
- php: 5.2
dist: precise
env: TRAVISCI_RUN=phpunit WP_VERSION=4.8 WORDPOINTS_VERSION=develop WC_VERSION=release/3.3
- php: 5.2
dist: precise
env: TRAVISCI_RUN=phpunit WP_VERSION=4.8 WORDPOINTS_VERSION=master WC_VERSION=master
- php: 5.2
dist: precise
env: TRAVISCI_RUN=phpunit WP_VERSION=4.8 WORDPOINTS_VERSION=master WC_VERSION=release/3.3
- php: 5.2
dist: precise
env: TRAVISCI_RUN=phpunit WP_VERSION=4.7 WORDPOINTS_VERSION=master WC_VERSION=master
- php: 5.2
dist: precise
env: TRAVISCI_RUN=phpunit WP_VERSION=4.7 WORDPOINTS_VERSION=master WC_VERSION=release/3.3
# Only run nightly against trunk.
- php: nightly
env: TRAVISCI_RUN=phpunit WP_VERSION=develop WC_VERSION=master
exclude:
# The codesniff pass only needs to be run once.
- php: 7.2
- php: 7.1
env: TRAVISCI_RUN=codesniff
- php: 7.0
env: TRAVISCI_RUN=codesniff
Expand All @@ -62,9 +142,21 @@ matrix:
env: TRAVISCI_RUN=codesniff
- php: 5.4
env: TRAVISCI_RUN=codesniff
# WordPress below 4.9 is not compatible with PHP 7.2.
- php: 7.2
env: TRAVISCI_RUN=phpunit WP_VERSION=4.8 WORDPOINTS_VERSION=develop WC_VERSION=master
- php: 7.2
env: TRAVISCI_RUN=phpunit WP_VERSION=4.8 WORDPOINTS_VERSION=develop WC_VERSION=release/3.3
- php: 7.2
env: TRAVISCI_RUN=phpunit WP_VERSION=4.8 WORDPOINTS_VERSION=master WC_VERSION=master
- php: 7.2
env: TRAVISCI_RUN=phpunit WP_VERSION=4.8 WORDPOINTS_VERSION=master WC_VERSION=release/3.3
- php: 7.2
env: TRAVISCI_RUN=phpunit WP_VERSION=4.7 WORDPOINTS_VERSION=master WC_VERSION=master
- php: 7.2
env: TRAVISCI_RUN=phpunit WP_VERSION=4.7 WORDPOINTS_VERSION=master WC_VERSION=release/3.3
allow_failures:
- php: nightly
- php: 7.2
fast_finish: true

before_script:
Expand Down
56 changes: 33 additions & 23 deletions .wp-l10n-validator-cache.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@
"errors": false
},
"\/classes\/entity\/order.php": {
"size": 1261,
"hash": "60f9a0940017a491c69437ec8502baa4",
"size": 1199,
"hash": "415cfc52bb9185a21bd9bb78a2ddbd20",
"errors": false
},
"\/classes\/entity\/product\/review.php": {
Expand Down Expand Up @@ -101,23 +101,33 @@
"errors": false
},
"\/classes\/index.php": {
"size": 1913,
"hash": "480685c940669dbee6a7f5b7509c7a7a",
"size": 2053,
"hash": "8428f150e024cf62be9c31048d3197fc",
"errors": false
},
"\/classes\/installable.php": {
"size": 871,
"hash": "46becfb0e95e9879b22c56de3f28b323",
"errors": false
},
"\/classes\/updater\/1\/2\/0\/gateway.php": {
"size": 731,
"hash": "ad835a26346d440ed8d239aaa32ba016",
"errors": false
},
"\/components\/points\/includes\/actions.php": {
"size": 267,
"hash": "a3017b6ce609d09e076a2879b7d3cc83",
"size": 270,
"hash": "7a91e286beac7b353a0162293c702172",
"errors": false
},
"\/components\/points\/includes\/functions.php": {
"size": 1946,
"hash": "53ee7cc85e34e751788a7951331ffff9",
"size": 10836,
"hash": "84f62bd625257e0daa25f8978ac27df2",
"errors": false
},
"\/components\/points\/includes\/gateways\/points.php": {
"size": 11019,
"hash": "118800240714c3271cfbd2ffec2734d6",
"size": 11041,
"hash": "14c412352bf8a6484afab0da0476d79e",
"errors": false
},
"\/components\/points\/includes\/index.php": {
Expand All @@ -126,35 +136,35 @@
"errors": false
},
"\/components\/points\/points.php": {
"size": 547,
"hash": "7f3c9dfa9bee16c2b1b715be84877045",
"size": 541,
"hash": "a4705c37e76367027f431539344c8e37",
"errors": false
},
"\/includes\/actions.php": {
"size": 687,
"hash": "1a6757c91ed59f6b3f91a9849ffdaeab",
"size": 690,
"hash": "9a3fd655d5050a230bd2522c09eeb0d7",
"errors": false
},
"\/includes\/class-un-installer.php": {
"size": 1409,
"hash": "11caa402d800f536bfee3910daec3c3e",
"size": 1145,
"hash": "0c01188f924c4bcb3b00f1e93afba4b1",
"errors": false
},
"\/includes\/constants.php": {
"size": 457,
"hash": "160828d1993b8bd70f89fca29d65b85c",
"size": 458,
"hash": "96c6c795b3f7871d3ca1d9a2d5c3a1e6",
"errors": false
},
"\/includes\/functions.php": {
"size": 5795,
"hash": "002b34c80c573d7dd23f421f087e434a",
"size": 5804,
"hash": "1fa8266af9679df2f99242b207d29249",
"errors": false
},
"\/woocommerce.php": {
"size": 1522,
"hash": "8fa47d1b3a9f8a56739e3d073cd4763f",
"size": 1543,
"hash": "c8711aa061765366f720edf049dd0446",
"errors": false
}
},
"config_signature": "1ca1af7095becd556417f9dd5dd6403f"
"config_signature": "50c54bae94b7a74ab11249b59e47fdbb"
}
37 changes: 24 additions & 13 deletions .wp-l10n-validator-ignores-cache.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"\/components\/points\/includes\/gateways\/points.php": {
"products": {
"30": {
"27": {
"name": "array",
"type": "unknown",
"args_started": true,
Expand All @@ -10,7 +10,7 @@
}
},
"refunds": {
"30": {
"27": {
"name": "array",
"type": "unknown",
"args_started": true,
Expand Down Expand Up @@ -40,13 +40,6 @@
}
},
"text": {
"137": {
"name": "array",
"type": "unknown",
"args_started": true,
"arg_count": 1,
"parentheses": 1
},
"144": {
"name": "array",
"type": "unknown",
Expand Down Expand Up @@ -80,21 +73,21 @@
}
},
"fail": {
"276": {
"279": {
"name": "array",
"type": "unknown",
"args_started": true,
"arg_count": 0,
"parentheses": 1
},
"305": {
"308": {
"name": "array",
"type": "unknown",
"args_started": true,
"arg_count": 0,
"parentheses": 1
},
"330": {
"333": {
"name": "array",
"type": "unknown",
"args_started": true,
Expand All @@ -103,7 +96,7 @@
}
},
"success": {
"340": {
"343": {
"name": "array",
"type": "unknown",
"args_started": true,
Expand Down Expand Up @@ -176,5 +169,23 @@
"parentheses": 1
}
}
},
"\/components\/points\/includes\/functions.php": {
"number": {
"133": {
"name": "array",
"type": "unknown",
"args_started": true,
"arg_count": 3,
"parentheses": 1
}
},
"refund": {
"301": false,
"330": false
},
"charge": {
"303": false
}
}
}
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@ This project adheres to [Semantic Versioning](http://semver.org/) and [Keep a CH

Nothing documented right now.

## [1.3.0] - 2018-02-10

### Added

- Coupon settings that allow a certain number of points to be charged each time a coupon is used.

### Fixed

- Added missing `id` attribute to points type dropdown for the points gateway at checkout.

## [1.2.1] - 2017-10-16

### Requires
Expand Down Expand Up @@ -99,6 +109,7 @@ Nothing documented right now.
- How many points to charge for the monetary amount can be set to 1-to-1 or 1-to-100.

[unreleased]: https://github.com/WordPoints/woocommerce/compare/master...HEAD
[1.3.0]: https://github.com/WordPoints/woocommerce/compare/1.2.1...1.3.0
[1.2.1]: https://github.com/WordPoints/woocommerce/compare/1.2.0...1.2.1
[1.2.0]: https://github.com/WordPoints/woocommerce/compare/1.1.0...1.2.0
[1.1.0]: https://github.com/WordPoints/woocommerce/compare/1.0.2...1.1.0
Expand Down
Loading

0 comments on commit f62c479

Please sign in to comment.