mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2024-11-29 08:26:06 +03:00
Prepare for Mailgun SDK v3.2.0 (#722)
* Add Changelog for 3.2.0 * Set restriction to v4.4 for roave/backward-compatibility-check * Set basic GitHub Actions as a replacement for Travis CI For some reason, Travis CI queues the jobs but takes ages before they start running. This is, essentially, stopping the development when we rely on the results to move forward. This GitHub Actions configuration file aims to boot the SDK testing several PHP versions and running both PHP Unit tests as well as PHP Stan and Scrutinizer CI checks (these last two just for PHP 7.1) * Remove Travis CI config file in favour of GitHub Actions * Don't set the composer_version key as it doesn't return a valid status
This commit is contained in:
parent
75627515f4
commit
a084abdb86
49
.github/workflows/php.yml
vendored
Normal file
49
.github/workflows/php.yml
vendored
Normal file
@ -0,0 +1,49 @@
|
||||
name: PHP Composer
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ 'master', '2.x' ]
|
||||
pull_request:
|
||||
branches: [ 'master', '2.x' ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
operating-system: [ 'ubuntu-latest' ]
|
||||
php-versions: [ '7.1', '7.2', '7.3', '7.4' ]
|
||||
|
||||
runs-on: ${{ matrix.operating-system }}
|
||||
|
||||
steps:
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Validate composer.json and composer.lock
|
||||
run: composer validate
|
||||
|
||||
- name: Setup PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: ${{ matrix.php-versions }}
|
||||
tools: phpunit, phpstan
|
||||
|
||||
- name: Install dependencies
|
||||
run: composer install --prefer-dist --no-progress --no-suggest
|
||||
|
||||
- name: PHP Unit Tests
|
||||
run: composer test
|
||||
|
||||
- name: PHP Stan
|
||||
if: matrix.php-versions == '7.1'
|
||||
run: |
|
||||
phpstan --version
|
||||
phpstan analyse
|
||||
|
||||
- name: Scrunitizer CI
|
||||
if: matrix.php-versions == '7.1'
|
||||
run: |
|
||||
wget https://scrutinizer-ci.com/ocular.phar
|
||||
php ocular.phar code-coverage:upload --format=php-clover build/coverage.xml
|
53
.travis.yml
53
.travis.yml
@ -1,53 +0,0 @@
|
||||
language: php
|
||||
|
||||
sudo: false
|
||||
|
||||
cache:
|
||||
directories:
|
||||
- $HOME/.composer/cache/files
|
||||
|
||||
php:
|
||||
- 7.1
|
||||
- 7.2
|
||||
- 7.3
|
||||
- 7.4
|
||||
|
||||
branches:
|
||||
except:
|
||||
- /^analysis-.*$/
|
||||
- /^patch-.*$/
|
||||
|
||||
env:
|
||||
- TEST_COMMAND="composer test"
|
||||
|
||||
matrix:
|
||||
fast_finish: true
|
||||
include:
|
||||
- php: 7.1
|
||||
env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest" PREFER_COVERAGE=true
|
||||
- name: Backward compatibility test (Disabled)
|
||||
php: 7.3
|
||||
env: DEPENDENCIES="roave/backward-compatibility-check"
|
||||
script: ./vendor/bin/roave-backward-compatibility-check || true
|
||||
- name: PHPStan
|
||||
php: 7.2
|
||||
env: DEPENDENCIES="phpstan/phpstan"
|
||||
script:
|
||||
- ./vendor/bin/phpstan --version
|
||||
- ./vendor/bin/phpstan analyse
|
||||
|
||||
before_install:
|
||||
- if [[ "$PREFER_COVERAGE" = true ]] && [[ "$TRAVIS_PULL_REQUEST" = false ]]; then TEST_COMMAND="composer test-coverage" COVERAGE=true; fi
|
||||
- if ! [ -z "$DEPENDENCIES" ]; then composer require --no-update ${DEPENDENCIES}; fi;
|
||||
|
||||
install:
|
||||
- composer update ${COMPOSER_FLAGS} --prefer-dist --no-interaction
|
||||
|
||||
script:
|
||||
- composer validate --strict --no-check-lock
|
||||
- echo $TEST_COMMAND
|
||||
- $TEST_COMMAND
|
||||
|
||||
after_success:
|
||||
- if [[ "$COVERAGE" = true ]]; then wget https://scrutinizer-ci.com/ocular.phar; fi
|
||||
- if [[ "$COVERAGE" = true ]]; then php ocular.phar code-coverage:upload --format=php-clover build/coverage.xml; fi
|
16
CHANGELOG.md
16
CHANGELOG.md
@ -2,6 +2,22 @@
|
||||
|
||||
The change log describes what is "Added", "Removed", "Changed" or "Fixed" between each release.
|
||||
|
||||
## 3.2.0
|
||||
|
||||
### Added
|
||||
|
||||
- Domain tracking implementation (#711 by @uavn)
|
||||
- Mailing list validation (#712 by @uavn)
|
||||
- Suppression Whitelists (#713 by @uavn)
|
||||
|
||||
### Fixed
|
||||
|
||||
- Added pagination to tags (#717 by @uavn)
|
||||
|
||||
### Changed
|
||||
|
||||
- Expect Client to be of type ClientInterface or PluginClient (#660 by @tonythomas01)
|
||||
|
||||
## 3.1.0
|
||||
|
||||
### Added
|
||||
|
Loading…
Reference in New Issue
Block a user