Skip to content

Commit

Permalink
travis ci
Browse files Browse the repository at this point in the history
  • Loading branch information
André Meireles committed Jul 22, 2019
1 parent 2d6f80e commit 8870a2a
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,12 @@ The MIT License (MIT). Please see [License File](LICENSE.md) for more informatio
[ico-code-quality]: https://img.shields.io/scrutinizer/g/:vendor/:package_name.svg?style=flat-square
[ico-downloads]: https://img.shields.io/packagist/dt/:vendor/:package_name.svg?style=flat-square

[link-packagist]: https://packagist.org/packages/:vendor/:package_name
[link-travis]: https://travis-ci.org/:vendor/:package_name
[link-scrutinizer]: https://scrutinizer-ci.com/g/:vendor/:package_name/code-structure
[link-packagist]: https://packagist.org/packages/andresmeireles/respectannotation
[link-travis]: https://travis-ci.org/andresmeireles/respectannotation
[link-scrutinizer]: https://scrutinizer-ci.com/g/andresmeireles/respectannotation/inspections/7d62cccd-7cb0-41d7-b740-d81434deddf4
[link-code-quality]: https://scrutinizer-ci.com/g/:vendor/:package_name
[link-downloads]: https://packagist.org/packages/:vendor/:package_name
[link-author]: https://github.com/:author_username
[link-downloads]: https://packagist.org/packages/andresmeireles/respectannotation/stats
[link-author]: https://andresmeireles.github.io/
[link-contributors]: ../../contributors
[dev-roadmap]: https://github.com/kamranahmedse/developer-roadmap
[respect-validation]: https://github.com/Respect/Validation
Expand Down
Empty file added dist: trusty
Empty file.
34 changes: 34 additions & 0 deletions travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
dist: trusty
language: php

php:
- 7.2
- 7.3

# This triggers builds to run on the new TravisCI infrastructure.
# See: http://docs.travis-ci.com/user/workers/container-based-infrastructure/
sudo: false

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

matrix:
include:
- php: 7.2
env: 'COMPOSER_FLAGS="--prefer-stable --prefer-lowest"'

before_script:
- travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-dist

script:
- vendor/bin/phpcs --standard=psr2 src/
- vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover

after_script:
- |
if [[ "$TRAVIS_PHP_VERSION" != 'hhvm' ]]; then
wget https://scrutinizer-ci.com/ocular.phar
php ocular.phar code-coverage:upload --format=php-clover coverage.clover
fi

0 comments on commit 8870a2a

Please sign in to comment.