Skip to content
This repository has been archived by the owner on Nov 8, 2020. It is now read-only.

Commit

Permalink
Build improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
klapuch committed Oct 4, 2017
1 parent badeb69 commit ed54bc6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
15 changes: 6 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ language: php

php:
- 7.1
- 7.2
- nightly

before_install:
- composer self-update
Expand All @@ -12,16 +14,11 @@ install:
- composer install --no-interaction --prefer-dist --no-scripts --no-progress --no-suggest --optimize-autoloader --classmap-authoritative

script:
- ./vendor/bin/phing ci
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.1" ]]; then vendor/bin/phing ci; else vendor/bin/phing; fi # Code coverage test

after_script:
- >
wget https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar
&& php coveralls.phar --verbose --config Tests/.coveralls.yml;
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.1" ]]; then wget https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar; fi
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.1" ]]; then php coveralls.phar --verbose --config Tests/.coveralls.yml; fi

after_failure:
- for i in $(find Tests -name \*.actual); do echo "--- $i"; cat $i; echo; echo; done

cache:
directories:
- $HOME/.composer/cache
- for i in $(find Tests -name \*.actual); do echo "--- $i"; cat $i; echo; echo; done
2 changes: 1 addition & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<exec executable="vendor/bin/phpstan" logoutput="true" passthru="true" checkreturn="true">
<arg value="analyse"/>
<arg value="-l"/>
<arg value="7"/>
<arg value="max"/>
<arg value="-c"/>
<arg path="phpstan.neon"/>
<arg path="Core"/>
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"sebastian/phpcpd": "^3.0",
"phing/phing": "^2.16",
"consistence/coding-standard": "^1.0",
"phpstan/phpstan": "^0.7.0",
"phpstan/phpstan": "^0.8.0",
"mockery/mockery": "^0.9.9"
},
"autoload": {
Expand Down

0 comments on commit ed54bc6

Please sign in to comment.