Skip to content

Commit

Permalink
.travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mambax7 committed Jun 9, 2024
1 parent 29680e7 commit 890f6db
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
language: php

php:
- 7.4
- 8.1
- 8.2
- 8.3

matrix:
allow_failures:
- php: nightly

install:
- composer install
- wget https://github.com/diff-sniffer/git/releases/download/0.3.2/git-phpcs.phar

script:
- vendor/bin/phpunit --stderr
- php git-phpcs.phar $TRAVIS_COMMIT_RANGE

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

0 comments on commit 890f6db

Please sign in to comment.