Skip to content

Commit

Permalink
Travis CI integration (#6)
Browse files Browse the repository at this point in the history
* Travis CI integration

* Remove php 7.0 from build

* Fix travis configuration

* Add nice badges to readme
  • Loading branch information
akondas authored and marmichalski committed Oct 23, 2018
1 parent f5daf13 commit b6c99c6
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 2 deletions.
21 changes: 21 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
language: php

matrix:
fast_finish: true

include:
- os: linux
php: '7.1'

- os: linux
php: '7.2'

cache:
directories:
- $HOME/.composer/cache

install:
- composer install --prefer-dist --no-interaction --ignore-platform-reqs

script:
- composer check
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Yii2 extension for PHPStan

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

## What does it do?

* Provides correct return type for `Yii::$container->get('service_id')` method,
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
"stan": "phpstan analyse -l max -c ./phpstan.neon ./src ./tests",
"check": [
"@check-cs",
"@tests",
"@stan"
"@stan",
"@tests"
]
}
}

0 comments on commit b6c99c6

Please sign in to comment.