Skip to content

Commit

Permalink
updated travis config
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita Chernyi committed Mar 1, 2018
1 parent 9e53622 commit 87e69d7
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,25 @@
---
language: "php"
language: php

git:
depth: 1

cache:
directories:
- $HOME/.composer

env:
global:
- PHP_CS_FIXER_IGNORE_ENV=1

php:
- 7.1
- 7.2

before_script:
- composer install
- composer require phpunit/phpunit satooshi/php-coveralls
- wget https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v2.6.0/php-cs-fixer.phar -O php-cs-fixer
- wget https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v2.10.3/php-cs-fixer.phar -O php-cs-fixer
- chmod +x ./php-cs-fixer
- mkdir -p tests/coverage

Expand All @@ -16,4 +28,4 @@ script:
- phpunit --coverage-text --coverage-clover ./tests/coverage/clover.xml

after_script:
- travis_retry php vendor/bin/coveralls -v
- travis_retry php vendor/bin/php-coveralls -v

0 comments on commit 87e69d7

Please sign in to comment.