Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
694 changes: 0 additions & 694 deletions .ci/Jenkinsfile

This file was deleted.

22 changes: 0 additions & 22 deletions .ci/akeneo.conf

This file was deleted.

111 changes: 0 additions & 111 deletions .ci/k8s/pim_17_ce.yaml

This file was deleted.

147 changes: 0 additions & 147 deletions .ci/k8s/pim_20_ce.yaml

This file was deleted.

30 changes: 30 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
language: php

php:
- 5.6
- 7.0
- 7.1

sudo: false

cache:
directories:
- $HOME/.composer/cache/files

before_install:
- phpenv config-rm xdebug.ini
- phpenv config-add travis.php.ini
- echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
- composer self-update --no-interaction

install:
- composer require php-http/guzzle6-adapter
- composer install --prefer-dist --no-interaction

script:
- bin/php-cs-fixer fix --diff --dry-run --config=.php_cs.php -vvv
- bin/phpspec run --no-interaction
- php -d error_reporting="E_ALL" bin/phpunit -c phpunit.xml.dist

notifications:
email: false
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,15 @@

- Change the constructor of `Akeneo\Pim\ApiClient\Api\ProductMediaFileApi` to add `Akeneo\Pim\ApiClient\FileSystem\FileSystemInterface`
- Add method `Akeneo\Pim\ApiClient\Api\AttributeOptionApiInterface::upsertList`

# 1.0.x

## Bug Fixes

- API-599: fix const not supported by PHP 5.6

# 1.0.1 (2018-04-05)

## Improvements

- API-592: Handle error when the response is a redirection (https://github.com/akeneo/api-php-client/issues/72)
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,20 @@ $client->getProductApi()->upsertList([
]);
```

## Testing

Do note that you have to delete the `composer.lock` because Doctrine dependencies are loaded.
These dependencies are different in function of the PHP version running `composer install`.

```
cp docker-compose.yml.dist docker-compose.yml
rm -rf composer.lock vendor/
docker-compose run client_56 composer install
docker-compose run client_56 bin/phpunit -c phpunit.xml.dist
docker-compose run client_56 bin/phpspec run
docker-compose run client_56 bin/php-cs-fixer fix --diff --dry-run --config=.php_cs.php -vvv
```

## Support

The support of this client is made in best effort by our Akeneo team.
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
"friendsofphp/php-cs-fixer": "^v2.3",
"phpunit/phpunit": "5.7.*",
"phpspec/phpspec": "3.2.*",
"symfony/yaml": "^3.3"
"symfony/yaml": "^3.3",
"donatj/mock-webserver": "^2.0"
},
"config": {
"bin-dir": "bin"
Expand Down
Loading