Skip to content

Commit

Permalink
Merge pull request #2 from chq81/add-tests
Browse files Browse the repository at this point in the history
Add tests
  • Loading branch information
Christoph Quadt authored Oct 21, 2020
2 parents e2210f6 + 23bcf24 commit 23f6e05
Show file tree
Hide file tree
Showing 6 changed files with 893 additions and 77 deletions.
50 changes: 50 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
language: php

cache:
directories:
- $HOME/.composer/cache/files
- $HOME/symfony-bridge/.phpunit

env:
global:
- PHPUNIT_FLAGS="-v"
- SYMFONY_PHPUNIT_DIR="$HOME/symfony-bridge/.phpunit"

matrix:
fast_finish: true
include:
# Minimum supported dependencies with the latest and oldest PHP version
- php: 7.4
env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest" SYMFONY_DEPRECATIONS_HELPER="max[self]=0"
- php: 7.1
env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest" SYMFONY_DEPRECATIONS_HELPER="max[self]=0"

# Test the latest stable release
- php: 7.1
- php: 7.2
- php: 7.3
- php: 7.4
env: COVERAGE=true PHPUNIT_FLAGS="-v --coverage-text"

# Latest commit to master
- php: 7.4
env: STABILITY="dev"

allow_failures:
# Dev-master is allowed to fail.
- env: STABILITY="dev"

before_install:
- if [[ $COVERAGE != true ]]; then phpenv config-rm xdebug.ini || true; fi
- if ! [ -z "$STABILITY" ]; then composer config minimum-stability ${STABILITY}; fi;
- if ! [ -v "$DEPENDENCIES" ]; then composer require --no-update ${DEPENDENCIES}; fi;

install:
- composer update ${COMPOSER_FLAGS} --prefer-dist --no-interaction
- ./vendor/bin/simple-phpunit install

script:
- composer validate --strict --no-check-lock
# simple-phpunit is the PHPUnit wrapper provided by the PHPUnit Bridge component and
# it helps with testing legacy code and deprecations (composer require symfony/phpunit-bridge)
- ./vendor/bin/simple-phpunit $PHPUNIT_FLAGS
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2020 Christoph Quadt

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Elastic APM Symfony Bundle
# Symfony Elastic APM Bundle

This package is a continuation of the excellent work done by [goksagun](https://github.com/goksagun) at
[goksagun/elastic-apm-bundle](https://github.com/goksagun/elastic-apm-bundle).
Expand Down
33 changes: 18 additions & 15 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,31 +16,34 @@
"elastic apm bundle"
],
"license": "MIT",
"autoload": {
"psr-4": {
"Chq81\\ElasticApmBundle\\": ""
},
"exclude-from-classmap": [
"/Tests/"
]
},
"require": {
"php": ">=7.1",
"nipwaayoni/elastic-apm-php-agent": "^7.5",
"symfony/config": "^5.1",
"symfony/dependency-injection": "^5.1",
"symfony/http-kernel": "^5.1",
"symfony/security-core": "^5.1"
"symfony/config": "^4.4 || ^5.1",
"symfony/dependency-injection": "^4.4 || ^5.1",
"symfony/http-kernel": "^4.4 || ^5.1",
"symfony/security-bundle": "^4.4 || ^5.1"
},
"require-dev": {
"symfony/phpunit-bridge": "^5.1"
"symfony/phpunit-bridge": "^4.4 || ^5.1"
},
"minimum-stability": "dev",
"prefer-stable": true,
"config": {
"sort-packages": true
},
"minimum-stability": "stable",
"autoload": {
"psr-4": {
"Chq81\\ElasticApmBundle\\": ""
},
"exclude-from-classmap": [
"/Tests/"
]
},
"extra": {
"symfony": {
"allow-contrib": "true"
"allow-contrib": "true",
"require": "5.1.*"
}
}
}
Loading

0 comments on commit 23f6e05

Please sign in to comment.