Skip to content

Commit da97813

Browse files
committedJun 28, 2018
Initial commit
1 parent 60d311b commit da97813

9 files changed

+150
-2
lines changed
 

‎.github/CONTRIBUTING.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## Contributing
2+
3+
Before submitting an issue or PR, take a moment to look through the issue and PR queue to ensure it hasn't previously been submitted.

‎.github/ISSUE_TEMPLATE.md

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<!--- Provide a succinct summary of the issue in the title above -->
2+
3+
### Issue links
4+
<!--- Provide links to related issues -->
5+
6+
### Expected behavior
7+
<!--- Describe what should happen -->
8+
9+
### Actual behavior
10+
<!--- Describe what happens instead of the expected behavior -->
11+
12+
### Steps to reproduce
13+
<!--- Provide a link to a live example, steps to reproduce or code example-->
14+
1.
15+
2.
16+
3.
17+
18+
### Context
19+
<!--- How has this issue affected you (include sites and projects)? -->
20+
<!--- What are you trying to accomplish? -->
21+
<!--- Were there recent changes that could affect this issue? -->
22+
<!--- Include links to screenshots -->
23+
24+
### Possible solution
25+
<!--- Suggest a fix for the issue -->

‎.github/PULL_REQUEST_TEMPLATE.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<!--- Provide a succinct summary of the issue in the title above -->
2+
3+
### Issue links
4+
<!--- Provide links to related issues -->
5+
6+
### Description
7+
<!--- Provide an overview of the change being made -->

‎.travis.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# @file
2+
# .travis.yml - Metrics PHP library Travis CI Integration.
3+
#
4+
5+
language: php
6+
7+
php:
8+
- 7.1
9+
10+
matrix:
11+
fast_finish: true
12+
13+
# Skip tests for tags.
14+
if: tag IS blank
15+
16+
env:
17+
global:
18+
# Set the composer vendor Path.
19+
- COMPOSER_VENDOR_PATH="$HOME/.composer/vendor"
20+
21+
# Add executables into PATH.
22+
- PATH="$PATH:$COMPOSER_VENDOR_PATH/bin"
23+
24+
before_install:
25+
- composer self-update
26+
27+
install:
28+
- composer global require "squizlabs/php_codesniffer=*"
29+
- composer global require escapestudios/symfony2-coding-standard:~3
30+
- phpcs --config-set installed_paths "$COMPOSER_VENDOR_PATH/escapestudios/symfony2-coding-standard"
31+
32+
before_script:
33+
- composer install -vvv
34+
35+
script:
36+
- phpcs --ignore=vendor/* --standard=Symfony --warning-severity=0 .
37+
- phpunit --configuration phpunit.xml

‎README.md

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
1-
# metrics
2-
PHP library that abstracts different metrics collectors
1+
# Metrics
2+
3+
## Overview
4+
*Update this with a package description.*
5+
6+
## Installation
7+
8+
*Update this with a package installation.*

‎composer.json

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"name": "edisonlabs/metrics",
3+
"type": "library",
4+
"description": "PHP library that abstracts different metrics collectors.",
5+
"license": "GPL-2.0+",
6+
"autoload": {
7+
"psr-4": {
8+
"edison\\metrics\\": "src/"
9+
}
10+
},
11+
"require-dev": {
12+
"phpunit/phpunit": "^6.5"
13+
}
14+
}

‎phpunit.xml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<phpunit backupGlobals="false"
4+
backupStaticAttributes="false"
5+
bootstrap="vendor/autoload.php"
6+
colors="true"
7+
convertErrorsToExceptions="true"
8+
convertNoticesToExceptions="true"
9+
convertWarningsToExceptions="true"
10+
processIsolation="false"
11+
stopOnFailure="false"
12+
syntaxCheck="false"
13+
>
14+
15+
<testsuites>
16+
<testsuite name="metrics's test suit">
17+
<directory>./tests/</directory>
18+
</testsuite>
19+
</testsuites>
20+
21+
</phpunit>

‎src/Metrics.php

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
namespace edisonlabs\metrics;
4+
5+
/**
6+
* Main class for metrics.
7+
*
8+
* @group metrics
9+
*/
10+
class Metrics
11+
{
12+
13+
}

‎tests/src/Unit/MetricsTest.php

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
3+
namespace edisonlabs\metrics\Unit;
4+
5+
use PHPUnit\Framework\TestCase;
6+
7+
/**
8+
* Tests generation of metrics.
9+
*
10+
* @group metrics
11+
*/
12+
class MetricsTest extends TestCase
13+
{
14+
15+
/**
16+
* Basic test to get success result.
17+
*/
18+
public function testMetrics()
19+
{
20+
$this->assertTrue(true);
21+
}
22+
}

0 commit comments

Comments
 (0)
Please sign in to comment.