Skip to content

Commit ffa2f04

Browse files
committed
add travis
1 parent 30596ae commit ffa2f04

File tree

6 files changed

+103
-9
lines changed

6 files changed

+103
-9
lines changed

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
language: php
2+
php:
3+
- '7.0'
4+
5+
script: make lint test

Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,11 @@
1+
install:
2+
composer install
3+
4+
autoload:
5+
composer dump-autoload
6+
17
test:
28
composer exec phpunit -- --color tests
9+
10+
lint:
11+
composer exec 'phpcs --standard=PSR2 src tests'

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
11
# php-pairs
2+
3+
[![Build Status](https://travis-ci.org/hexlet-components/php-pairs.svg?branch=master)](https://travis-ci.org/hexlet-components/php-pairs)
4+
[![Code Climate](https://codeclimate.com/github/hexlet-components/php-pairs/badges/gpa.svg)](https://codeclimate.com/github/hexlet-components/php-pairs)
5+
[![Issue Count](https://codeclimate.com/github/hexlet-components/php-pairs/badges/issue_count.svg)](https://codeclimate.com/github/hexlet-components/php-pairs)

composer.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "hexlet-components\\pairs",
2+
"name": "hexlet\\pairs",
33
"description": "",
44
"license": "MIT",
55
"keywords": ["pairs"],
@@ -11,11 +11,12 @@
1111
],
1212
"require": {},
1313
"require-dev": {
14-
"phpunit/phpunit": "*"
14+
"phpunit/phpunit": "*",
15+
"squizlabs/php_codesniffer": "2.*"
1516
},
1617
"autoload": {
17-
"psr-4": {
18-
"Pairs\\": "src"
19-
}
18+
"files": [
19+
"src/Pairs.php"
20+
]
2021
}
2122
}

composer.lock

Lines changed: 79 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/PairsTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
namespace Pairs\tests;
44

5-
require_once 'Pairs.php';
6-
75
use function Pairs\cons;
86
use function Pairs\car;
97
use function Pairs\cdr;

0 commit comments

Comments
 (0)