Skip to content

Commit b6c99c6

Browse files
akondasmarmichalski
authored andcommitted
Travis CI integration (#6)
* Travis CI integration * Remove php 7.0 from build * Fix travis configuration * Add nice badges to readme
1 parent f5daf13 commit b6c99c6

File tree

3 files changed

+29
-2
lines changed

3 files changed

+29
-2
lines changed

.travis.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
language: php
2+
3+
matrix:
4+
fast_finish: true
5+
6+
include:
7+
- os: linux
8+
php: '7.1'
9+
10+
- os: linux
11+
php: '7.2'
12+
13+
cache:
14+
directories:
15+
- $HOME/.composer/cache
16+
17+
install:
18+
- composer install --prefer-dist --no-interaction --ignore-platform-reqs
19+
20+
script:
21+
- composer check

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Yii2 extension for PHPStan
22

3+
[![Minimum PHP Version](https://img.shields.io/badge/php-%3E%3D%207.1-8892BF.svg)](https://php.net/)
4+
[![Latest Stable Version](https://img.shields.io/packagist/v/proget-hq/phpstan-yii2.svg)](https://packagist.org/packages/proget-hq/phpstan-yii2)
5+
[![Build Status](https://travis-ci.org/proget-hq/phpstan-yii2.svg?branch=master)](https://travis-ci.org/proget-hq/phpstan-yii2)
6+
[![Total Downloads](https://poser.pugx.org/proget-hq/phpstan-yii2/downloads.svg)](https://packagist.org/packages/proget-hq/phpstan-yii2)
7+
[![License](https://poser.pugx.org/proget-hq/phpstan-yii2/license.svg)](https://packagist.org/packages/proget-hq/phpstan-yii2)
8+
39
## What does it do?
410

511
* Provides correct return type for `Yii::$container->get('service_id')` method,

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
3535
"stan": "phpstan analyse -l max -c ./phpstan.neon ./src ./tests",
3636
"check": [
3737
"@check-cs",
38-
"@tests",
39-
"@stan"
38+
"@stan",
39+
"@tests"
4040
]
4141
}
4242
}

0 commit comments

Comments
 (0)