Skip to content

Commit 0ba8dc8

Browse files
authored
Merge pull request #136 from akeneo/merge_20_into_master
Merge 2.0 into master
2 parents ea83f22 + 03479e4 commit 0ba8dc8

File tree

106 files changed

+968
-13696
lines changed

Some content is hidden

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

106 files changed

+968
-13696
lines changed

.ci/Jenkinsfile

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

.ci/akeneo.conf

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

.ci/k8s/pim_17_ce.yaml

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

.ci/k8s/pim_20_ce.yaml

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

.travis.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
language: php
2+
3+
php:
4+
- 5.6
5+
- 7.0
6+
- 7.1
7+
8+
sudo: false
9+
10+
cache:
11+
directories:
12+
- $HOME/.composer/cache/files
13+
14+
before_install:
15+
- phpenv config-rm xdebug.ini
16+
- phpenv config-add travis.php.ini
17+
- echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
18+
- composer self-update --no-interaction
19+
20+
install:
21+
- composer require php-http/guzzle6-adapter
22+
- composer install --prefer-dist --no-interaction
23+
24+
script:
25+
- bin/php-cs-fixer fix --diff --dry-run --config=.php_cs.php -vvv
26+
- bin/phpspec run --no-interaction
27+
- php -d error_reporting="E_ALL" bin/phpunit -c phpunit.xml.dist
28+
29+
notifications:
30+
email: false

CHANGELOG-2.0.md renamed to CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# 2.0.1 (2018-05-03)
2+
3+
## Improvements
4+
5+
- API-592: Handle error when the response is a redirection
6+
17
# 2.0.0 (2018-02-15)
28

39
## Improvements
@@ -10,3 +16,15 @@
1016

1117
- Change the constructor of `Akeneo\Pim\ApiClient\Api\ProductMediaFileApi` to add `Akeneo\Pim\ApiClient\FileSystem\FileSystemInterface`
1218
- Add method `Akeneo\Pim\ApiClient\Api\AttributeOptionApiInterface::upsertList`
19+
20+
# 1.0.x
21+
22+
## Bug Fixes
23+
24+
- API-599: fix const not supported by PHP 5.6
25+
26+
# 1.0.1 (2018-04-05)
27+
28+
## Improvements
29+
30+
- API-592: Handle error when the response is a redirection (https://github.com/akeneo/api-php-client/issues/72)

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,20 @@ $client->getProductApi()->upsertList([
131131
]);
132132
```
133133

134+
## Testing
135+
136+
Do note that you have to delete the `composer.lock` because Doctrine dependencies are loaded.
137+
These dependencies are different in function of the PHP version running `composer install`.
138+
139+
```
140+
cp docker-compose.yml.dist docker-compose.yml
141+
rm -rf composer.lock vendor/
142+
docker-compose run client_56 composer install
143+
docker-compose run client_56 bin/phpunit -c phpunit.xml.dist
144+
docker-compose run client_56 bin/phpspec run
145+
docker-compose run client_56 bin/php-cs-fixer fix --diff --dry-run --config=.php_cs.php -vvv
146+
```
147+
134148
## Support
135149

136150
The support of this client is made in best effort by our Akeneo team.

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
"friendsofphp/php-cs-fixer": "^v2.3",
3434
"phpunit/phpunit": "5.7.*",
3535
"phpspec/phpspec": "3.2.*",
36-
"symfony/yaml": "^3.3"
36+
"symfony/yaml": "^3.3",
37+
"donatj/mock-webserver": "^2.0"
3738
},
3839
"config": {
3940
"bin-dir": "bin"

0 commit comments

Comments
 (0)