Skip to content

Commit

Permalink
Setup the project and the CI configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
jcchavezs committed Feb 2, 2018
1 parent 29ee1d9 commit 33328ef
Show file tree
Hide file tree
Showing 4 changed files with 108 additions and 2 deletions.
42 changes: 42 additions & 0 deletions .circleci/config.yml
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/vendor/
composer.lock
25 changes: 23 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,23 @@
# dd-trace-php
Datadog PHP Tracer
# DD Trace PHP

PHP APM Client

## Install

```
composer require datadog/dd-trace
```

## Contribution

### Run tests

```
composer test
```

### Fix lint

```
composer fix-lint
```
41 changes: 41 additions & 0 deletions composer.json
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"],
"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/* ./"
}
}

0 comments on commit 33328ef

Please sign in to comment.