-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Setup the project and the CI configuration.
- Loading branch information
Showing
4 changed files
with
110 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
version: 2 | ||
|
||
jobs: | ||
"php-5.6": | ||
docker: | ||
- image: circleci/php:5.6 | ||
working_directory: ~/dd-trace | ||
steps: | ||
- checkout | ||
- run: composer install -n --prefer-dist | ||
- run: composer lint | ||
- run: composer test | ||
|
||
"php-7.0": | ||
docker: | ||
- image: circleci/php:7.0 | ||
working_directory: ~/dd-trace | ||
steps: | ||
- checkout | ||
- run: composer install -n --prefer-dist | ||
- run: composer lint | ||
- run: composer test | ||
|
||
"php-7.1": | ||
docker: | ||
- image: circleci/php:7.1 | ||
working_directory: ~/dd-trace | ||
steps: | ||
- checkout | ||
- run: composer install -n --prefer-dist | ||
- run: composer lint | ||
- run: composer test | ||
|
||
"php-7.2": | ||
docker: | ||
- image: circleci/php:7.2 | ||
working_directory: ~/dd-trace | ||
steps: | ||
- checkout | ||
- run: composer install -n --prefer-dist | ||
- run: composer lint | ||
- run: composer test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/vendor/ | ||
composer.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,25 @@ | ||
# dd-trace-php | ||
Datadog PHP Tracer | ||
# DD Trace PHP | ||
|
||
[![CircleCI](https://circleci.com/gh/DataDog/dd-trace-php/tree/master.svg?style=svg)](https://circleci.com/gh/DataDog/dd-trace-php/tree/master) | ||
|
||
PHP APM Client | ||
|
||
## Install | ||
|
||
``` | ||
composer require datadog/dd-trace | ||
``` | ||
|
||
## Contribution | ||
|
||
### Run tests | ||
|
||
``` | ||
composer test | ||
``` | ||
|
||
### Fix lint | ||
|
||
``` | ||
composer fix-lint | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"name": "datadog/dd-trace", | ||
"description": "PHP APM Client", | ||
"keywords": ["datadog", "php", "tracing"], | ||
"type": "library", | ||
"license": "BSD-3-Clause", | ||
"authors": [ | ||
{ | ||
"name": "José Carlos Chávez", | ||
"email": "jcchavezs@gmail.com" | ||
}, | ||
{ | ||
"name": "DataDog", | ||
"email": "dev@datadoghq.com", | ||
"role": "Developer" | ||
} | ||
], | ||
"minimum-stability": "dev", | ||
"require": { | ||
"opentracing/opentracing": "1.0.0-beta2" | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit": "~5.7.19", | ||
"squizlabs/php_codesniffer": "3.*" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"DDTrace\\": "./src/" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"DDTrace\\Tests\\": "./tests/" | ||
} | ||
}, | ||
"scripts": { | ||
"test": "./vendor/bin/phpunit tests", | ||
"lint": "./vendor/bin/phpcs --standard=ZEND --standard=PSR2 --ignore=*/vendor/* ./", | ||
"fix-lint": "./vendor/bin/phpcbf --standard=ZEND --standard=PSR2 --ignore=*/vendor/* ./" | ||
} | ||
} |