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 75c9029
Show file tree
Hide file tree
Showing 4 changed files with 110 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
27 changes: 25 additions & 2 deletions README.md
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
```
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", "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/* ./"
}
}

0 comments on commit 75c9029

Please sign in to comment.