Skip to content
This repository was archived by the owner on Oct 24, 2023. It is now read-only.

Commit c7321fb

Browse files
committed
Merge branch 'release/v2.10.0'
2 parents 3f8301f + f9e382c commit c7321fb

File tree

317 files changed

+21366
-23663
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

317 files changed

+21366
-23663
lines changed

.github/workflows/ci.yml

Lines changed: 184 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,184 @@
1+
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
2+
3+
on:
4+
- pull_request
5+
- push
6+
7+
name: CI
8+
9+
jobs:
10+
coding-guidelines:
11+
name: Coding Guidelines
12+
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v2
18+
19+
- name: "Install PHP with extensions"
20+
uses: shivammathur/setup-php@v2
21+
with:
22+
php-version: 7.4
23+
extensions: json, mbstring, intl
24+
tools: composer
25+
26+
- name: "Cache dependencies installed with composer"
27+
uses: actions/cache@v1
28+
with:
29+
path: ~/.composer/cache
30+
key: php7.4-composer-highest-${{ hashFiles('**/composer.json') }}
31+
restore-keys: |
32+
php7.4-composer-highest-
33+
34+
- name: Install dependencies with composer
35+
run: composer update --no-ansi --no-interaction --no-progress --no-suggest
36+
37+
- name: Run easy coding standard
38+
run: vendor/bin/ecs check
39+
40+
# type-checker:
41+
# name: Type Checker
42+
#
43+
# runs-on: ubuntu-latest
44+
#
45+
# strategy:
46+
# matrix:
47+
# php-version:
48+
# - "7.4"
49+
# dependencies:
50+
# - highest
51+
#
52+
# steps:
53+
# - name: Checkout
54+
# uses: actions/checkout@v2
55+
#
56+
# - name: "Install PHP with extensions"
57+
# uses: shivammathur/setup-php@v2
58+
# with:
59+
# php-version: ${{ matrix.php-version }}
60+
# extensions: json, mbstring, intl
61+
# tools: composer
62+
#
63+
# - name: "Cache dependencies installed with composer"
64+
# uses: actions/cache@v1
65+
# with:
66+
# path: ~/.composer/cache
67+
# key: php${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('**/composer.json') }}
68+
# restore-keys: |
69+
# php${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-
70+
#
71+
# - name: Install dependencies with composer
72+
# run: composer update --no-ansi --no-interaction --no-progress --no-suggest
73+
#
74+
# - name: Run psalm
75+
# run: php -dmemory_limit=-1 vendor/bin/psalm
76+
77+
unit:
78+
name: Unit tests
79+
80+
runs-on: ubuntu-latest
81+
82+
strategy:
83+
matrix:
84+
php-version:
85+
# - "5.6"
86+
- "7.2"
87+
- "7.3"
88+
- "7.4"
89+
# - "8.0"
90+
91+
dependencies:
92+
- lowest
93+
- highest
94+
95+
steps:
96+
- name: Checkout
97+
uses: actions/checkout@v2
98+
99+
- name: "Install PHP with extensions"
100+
uses: shivammathur/setup-php@v2
101+
with:
102+
php-version: ${{ matrix.php-version }}
103+
coverage: pcov
104+
extensions: json, mbstring, intl
105+
tools: composer
106+
ini-values: assert.exception=1, zend.assertions=1
107+
108+
- name: "Cache dependencies installed with composer"
109+
uses: actions/cache@v1
110+
with:
111+
path: ~/.composer/cache
112+
key: php${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('**/composer.json') }}
113+
restore-keys: |
114+
php${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-
115+
116+
- name: Set Guzzle5
117+
if: matrix.dependencies == 'lowest'
118+
run: ./set_guzzle5.sh
119+
120+
- name: Install lowest dependencies with composer
121+
if: matrix.dependencies == 'lowest'
122+
run: composer update --no-ansi --no-interaction --no-progress --no-suggest --prefer-lowest
123+
124+
- name: Install highest dependencies with composer
125+
if: matrix.dependencies == 'highest'
126+
run: composer update --no-ansi --no-interaction --no-progress --no-suggest
127+
128+
- name: Run tests with phpunit
129+
run: vendor/bin/phpunit --testsuite=unit --coverage-clover=coverage.xml
130+
131+
- name: Send code coverage report to Codecov.io
132+
env:
133+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
134+
run: bash <(curl -s https://codecov.io/bash) || true
135+
136+
integration:
137+
name: Integration tests
138+
139+
runs-on: ubuntu-latest
140+
141+
steps:
142+
- name: Checkout
143+
uses: actions/checkout@v2
144+
145+
- name: "Install PHP with extensions"
146+
uses: shivammathur/setup-php@v2
147+
with:
148+
php-version: 7.4
149+
coverage: pcov
150+
extensions: json, mbstring, intl, apcu
151+
tools: composer
152+
ini-values: assert.exception=1, zend.assertions=1, apc.enabled=1, apc.enable_cli=1
153+
154+
- name: "Cache dependencies installed with composer"
155+
uses: actions/cache@v1
156+
with:
157+
path: ~/.composer/cache
158+
key: php7.4-composer-highest-${{ hashFiles('**/composer.json') }}
159+
restore-keys: |
160+
php7.4-composer-highest-
161+
162+
- name: Install highest dependencies with composer
163+
if: github.event_name == 'push'
164+
env:
165+
COMMERCETOOLS_CLIENT_ID: ${{ secrets.COMMERCETOOLS_CLIENT_ID }}
166+
COMMERCETOOLS_CLIENT_SECRET: ${{ secrets.COMMERCETOOLS_CLIENT_SECRET }}
167+
COMMERCETOOLS_PROJECT: ${{ secrets.COMMERCETOOLS_PROJECT }}
168+
run: composer update --no-ansi --no-interaction --no-progress --no-suggest
169+
170+
- name: Install highest dependencies with composer for PR
171+
if: github.event_name == 'pull_request'
172+
env:
173+
COMMERCETOOLS_CLIENT_ID: ${{ secrets.PR_COMMERCETOOLS_CLIENT_ID }}
174+
COMMERCETOOLS_CLIENT_SECRET: ${{ secrets.PR_COMMERCETOOLS_CLIENT_SECRET }}
175+
COMMERCETOOLS_PROJECT: ${{ secrets.PR_COMMERCETOOLS_PROJECT }}
176+
run: composer update --no-ansi --no-interaction --no-progress --no-suggest
177+
178+
- name: Run integration tests with phpunit
179+
run: vendor/bin/phpunit --coverage-clover=coverage.xml
180+
181+
- name: Send code coverage report to Codecov.io
182+
env:
183+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
184+
run: bash <(curl -s https://codecov.io/bash) || true

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
coverage: none
2121

2222
- name: Install and Build 🔧
23-
run: ./install-apigen.sh && php apigen.phar generate --debug --config build/apigen.neon;
23+
run: ./install-apigen.sh && php apigen.phar generate --debug --config build/apigen.neon
2424

2525
- name: Install SSH Client 🔑
2626
uses: webfactory/[email protected]

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,6 @@ node_modules
2323
docroot/cache/
2424
docroot/requests.log
2525
tests/integration/requests.log
26+
tests/fixtures/NotificationExtension.php
27+
tools/http-client.private.env.json
28+
yarn.lock

.travis.yml

Lines changed: 0 additions & 59 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
# [2.10.0](https://github.com/commercetools/commercetools-php-sdk/compare/v2.9.0...v2.10.0) (2020-04-02)
2+
3+
4+
### Bug Fixes
5+
6+
* **Query:** fix query predicate variables to be forward compatible ([bb50caa](https://github.com/commercetools/commercetools-php-sdk/commit/bb50caa8e6166117ebffb6b27bc56f3f1fae6ff1))
7+
8+
9+
### Features
10+
11+
* **ApiClient:** oauth handler maps authentication errors to ApiException ([7a2e887](https://github.com/commercetools/commercetools-php-sdk/commit/7a2e887b905427924cc61c27a27cf4ec34244f40))
12+
* **Config:** remove legacy hostnames ([27f3769](https://github.com/commercetools/commercetools-php-sdk/commit/27f37690caf1790aee4fe05445be89fc7ae847ff)), closes [#537](https://github.com/commercetools/commercetools-php-sdk/issues/537)
13+
* **CustomerAddress:** add addressKey to actions and add one test ([04b453a](https://github.com/commercetools/commercetools-php-sdk/commit/04b453a4ce868eab7ac152e9c782f708da2cf3f4))
14+
* **CustomerStore:** add set add remove action for store in customer and add tests ([cedb0b0](https://github.com/commercetools/commercetools-php-sdk/commit/cedb0b017a9daf655fdfba031174992558858650))
15+
* **InventoryEntry:** add message for InventoryEntryCreated ([5c7319f](https://github.com/commercetools/commercetools-php-sdk/commit/5c7319fa67e7b176879e8f650e0a0ab7dda5f670))
16+
* **OrderStore:** add setStore action and message ([b375bfe](https://github.com/commercetools/commercetools-php-sdk/commit/b375bfe22eed819ebc4ed52e9ecbd62e79dd7ea9))
17+
* **ProductFixture:** update all methods relative to Cart with Published Product ([7c3fb2a](https://github.com/commercetools/commercetools-php-sdk/commit/7c3fb2a686cb6687b1da094248c64a6a3ea4d8fc))
18+
* **ShippingMethods:** add localized description to shippingMethods ([747179d](https://github.com/commercetools/commercetools-php-sdk/commit/747179dc1d1e1832185fbc96600eac0c731126a2))
19+
* **Store:** add Languages field to store ([b74172f](https://github.com/commercetools/commercetools-php-sdk/commit/b74172f15d12e1c47dc91e8e615d72953505e312))
20+
21+
22+
123
# [2.9.0](https://github.com/commercetools/commercetools-php-sdk/compare/v2.8.0...v2.9.0) (2019-12-02)
224

325

0 commit comments

Comments
 (0)