Skip to content

Commit

Permalink
bumping travis php versions, composer deps
Browse files Browse the repository at this point in the history
  • Loading branch information
jaydiablo committed Mar 1, 2019
1 parent 960be79 commit c841c10
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 16 deletions.
43 changes: 33 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,25 @@ language: php

sudo: false

php:
- 7
- 7.1
- 7.2
- nightly
cache:
directories:
- $HOME/.composer/cache
- vendor

env: TMPDIR=/tmp USE_XDEBUG=false
env:
global:
- COMPOSER_ARGS=""
- TMPDIR=/tmp
- USE_XDEBUG=false
- COMPOSER_DISCARD_CHANGES=1

branches:
only:
master

install:
- phpenv rehash
- travis_retry composer install --no-interaction --prefer-source
- travis_retry composer update --no-interaction --prefer-source $COMPOSER_ARGS

stages:
- test
Expand All @@ -33,20 +37,39 @@ script:
jobs:
fast_finish: true
allow_failures:
- php: 7.4snapshot
- php: nightly
include:
- php: 7.1
env: COMPOSER_ARGS="--prefer-lowest"
- php: 7.1
- php: 7.2
env: COMPOSER_ARGS="--prefer-lowest"
- php: 7.2
- php: 7.3
env: COMPOSER_ARGS="--prefer-lowest"
- php: 7.3
- php: 7.4snapshot
env: COMPOSER_ARGS="--ignore-platform-reqs --prefer-lowest"
- php: 7.4snapshot
env: COMPOSER_ARGS="--ignore-platform-reqs"
- php: nightly
env: COMPOSER_ARGS="--ignore-platform-reqs --prefer-lowest"
- php: nightly
env: COMPOSER_ARGS="--ignore-platform-reqs"

- stage: style check
php: 7.1
php: 7.2
env: TMPDIR=/tmp USE_XDEBUG=false
script:
- composer style-check
- stage: phpstan analysis
php: 7.1
php: 7.2
env: TMPDIR=/tmp USE_XDEBUG=false
script:
- composer phpstan
- stage: test with coverage
php: 7.1
php: 7.2
env: TMPDIR=/tmp USE_XDEBUG=true CC_TEST_REPORTER_ID=c8148e292affe8e53a9eee543314648bf2f27f9a394d128f6e7422b599301b12
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,19 @@
"src/"
],
"require-dev": {
"phpunit/phpunit": "^6.0",
"phpstan/phpstan": "^0.9.2",
"phpunit/phpunit": "^7.0",
"phpstan/phpstan": "^0.11.2",
"friendsofphp/php-cs-fixer": "^2.11",
"maglnet/composer-require-checker": "^0.1.6 | ^0.2.1",
"phpro/grumphp": "^0.14.0"
"maglnet/composer-require-checker": "^1.1.0",
"phpro/grumphp": "^0.15.0"
},
"archive": {
"exclude": ["/tests"]
},
"scripts": {
"test": "phpunit",
"test-with-coverage": "phpunit --coverage-clover=clover.xml",
"phpstan": "phpstan analyze -l1 -c phpstan.neon --no-progress ./ --ansi",
"phpstan": "phpstan analyze -c phpstan.neon --no-progress --ansi",
"style-check": "php-cs-fixer fix --dry-run -vv"
}
}
1 change: 0 additions & 1 deletion grumphp.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ parameters:
allow_risky: true
config: .php_cs
phpstan:
level: 1
configuration: phpstan.neon
phpunit:
metadata:
Expand Down
3 changes: 3 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
parameters:
level: 1
paths:
- ./
excludes_analyse:
- %rootDir%/../../../vendor/*
- %rootDir%/../../../tests/*
Expand Down

0 comments on commit c841c10

Please sign in to comment.