Skip to content

Commit

Permalink
Updating build to modern Travis CI specs; build on PHP 7+
Browse files Browse the repository at this point in the history
  • Loading branch information
ramsey committed Nov 23, 2016
1 parent 84a4b7c commit bccdf50
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,25 @@ php:
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
- hhvm

sudo: false

before_install:
- travis_retry composer self-update

install:
- travis_retry composer install --no-interaction --prefer-dist

before_script:
- composer self-update
- composer install --no-interaction --prefer-source --dev
- mkdir -p build/logs

script:
- ./vendor/bin/parallel-lint --exclude vendor . bin/shootproof-cli
- ./vendor/bin/phpunit --coverage-text --coverage-clover ./build/logs/clover.xml
- ./vendor/bin/parallel-lint src tests bin bin/shootproof-cli
- ./vendor/bin/phpunit --verbose --coverage-clover build/logs/clover.xml
- ./vendor/bin/phpcs src bin bin/shootproof-cli --standard=psr2 -sp

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

0 comments on commit bccdf50

Please sign in to comment.