.travis.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # see http://about.travis-ci.org/docs/user/languages/php/ for more hints
  2. language: php
  3. # list any PHP version you want to test against
  4. php:
  5. # using major version aliases
  6. - 7.3
  7. - 7.4
  8. - 8.0
  9. # optionally specify a list of environments, for example to test different RDBMS
  10. env:
  11. #- DB=mysql
  12. # execute any number of scripts before the test run, custom env's are available as variables
  13. before_script:
  14. #- if [[ "$DB" == "mysql" ]]; then mysql -e "create database IF NOT EXISTS hello_world_test;" -uroot; fi
  15. - composer self-update
  16. - composer install
  17. - mkdir -p build/logs
  18. # omitting "script:" will default to phpunit
  19. # use the $DB env variable to determine the phpunit.xml to use
  20. script:
  21. - vendor/bin/phpunit --configuration phpunit.xml --colors --coverage-text --coverage-clover build/logs/clover.xml
  22. - vendor/bin/phpcs --standard=PSR2 --extensions=php --ignore=*/test/* ./src/class
  23. # configure notifications (email, IRC, campfire etc)
  24. #notifications:
  25. #irc: "irc.freenode.org#travis"
  26. after_script:
  27. #- php vendor/bin/coveralls
  28. # or enable logging
  29. - vendor/bin/coveralls -v
  30. #- vendor/bin/coveralls -c tests/coveralls.yml -v
  31. before_install:
  32. - pip install --user codecov
  33. after_success:
  34. - codecov